Addressing review from D12865
Details
Details
Diff Detail
Diff Detail
- Repository
- rCOMM Comm
- Branch
- inka/fix_cap
- Lint
No Lint Coverage - Unit
No Test Coverage
Event Timeline
Herald added a subscriber: ashoat. · View Herald TranscriptAug 5 2024, 1:49 AM2024-08-05 01:49:21 (UTC-7)
Harbormaster returned this revision to the author for changes because remote builds failed.Aug 5 2024, 1:58 AM2024-08-05 01:58:24 (UTC-7)
Harbormaster completed remote builds in B30883: Diff 43063.Aug 5 2024, 6:03 AM2024-08-05 06:03:23 (UTC-7)
This revision is now accepted and ready to land.Aug 5 2024, 6:07 AM2024-08-05 06:07:00 (UTC-7)
Closed by commit rCOMMcd4f332a9b1b: Fix capitalization (authored by inka). · Explain WhyAug 5 2024, 7:26 AM2024-08-05 07:26:07 (UTC-7)
This revision was automatically updated to reflect the committed changes.
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.