This reduces a bunch of noise in community roots when people get auto-added to the communities.
Depends on D13688
Paths
| Differential D13689 Authored by ashoat on Oct 9 2024, 8:35 PM.
Tags None Referenced Files
Subscribers None
Details
Summary This reduces a bunch of noise in community roots when people get auto-added to the communities. Depends on D13688 Test Plan
Diff Detail
Event Timelineashoat edited the test plan for this revision. (Show Details)Oct 9 2024, 8:36 PM2024-10-09 20:36:31 (UTC-7) Comment Actions Note that the extra vertical spacing in the test video is caused by ENG-2928, and is unrelated to the work here Harbormaster completed remote builds in B32173: Diff 45048.Oct 9 2024, 10:21 PM2024-10-09 22:21:29 (UTC-7) tomek added inline comments.
This revision is now accepted and ready to land.Oct 11 2024, 7:58 AM2024-10-11 07:58:32 (UTC-7)
Harbormaster failed remote builds in B32210: Diff 45106!Oct 13 2024, 5:54 PM2024-10-13 17:54:05 (UTC-7) Harbormaster failed remote builds in B32211: Diff 45107!Oct 13 2024, 6:03 PM2024-10-13 18:03:15 (UTC-7) This revision was landed with ongoing or failed builds.Oct 13 2024, 6:44 PM2024-10-13 18:44:08 (UTC-7) Closed by commit rCOMM038702514e91: [lib] Merge consecutive membership robotext messages (authored by ashoat). · Explain Why This revision was automatically updated to reflect the committed changes. Harbormaster completed remote builds in B32214: Diff 45110.Oct 13 2024, 6:52 PM2024-10-13 18:52:24 (UTC-7)
Revision Contents
Diff 45107 lib/shared/messages/add-members-message-spec.js
lib/shared/messages/join-thread-message-spec.js
lib/shared/messages/leave-thread-message-spec.js
lib/shared/messages/remove-members-message-spec.js
|
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.