Buildkite CI was polling indefinitely when running nix develop.
Only ask for powerline prompt if it's an interactive shell.
Differential D4902
[Nix] Only prompt Powerline when an interactive shell • jon on Aug 22 2022, 4:58 PM. Authored by Tags None Referenced Files
Details
Buildkite CI was polling indefinitely when running nix develop. Only ask for powerline prompt if it's an interactive shell. # Reset powerline preference rm ~/Library/Caches/app.comm/enable-powerline nix develop # Should get prompted for Powerline For buildkite, the below run should pass
Diff Detail
|
We definitely should return something from this lambda since otherwise it is useless to assign it to variable.
If we find that we don't have permissions then just calling await this.requestAndroidNotificationsPermission(); would result in a prompt asking for notifications permissions. However if the user grants those permissions then hasPermissions is still falsy (since promise returned nothing), so deviceToken will be set to null. Nevertheless permissions are actually granted byt the OS, so the state on the device and keyserver would heal itself on next render.
This differential fixes this case so that if user grants permissions correct state is achieved immediately without need for additional re-render to heal the state.