This came from React Native Upgrade Helper
Depends on D5901
Differential D5902 Authored by ashoat on Dec 17 2022, 7:48 PM.
Tags None Referenced Files
Subscribers
Details
Summary This came from React Native Upgrade Helper Depends on D5901 Test Plan Tested along with whole stack: test plan
Diff Detail
Event TimelineHerald added a subscriber: atul. · View Herald TranscriptDec 17 2022, 7:48 PM2022-12-17 19:48:59 (UTC-8) Harbormaster returned this revision to the author for changes because remote builds failed.Dec 17 2022, 7:49 PM2022-12-17 19:49:35 (UTC-8) Harbormaster failed remote builds in B14280: Diff 19519!Dec 18 2022, 8:43 PM2022-12-18 20:43:41 (UTC-8) Harbormaster failed remote builds in B14332: Diff 19581!Dec 19 2022, 8:23 AM2022-12-19 08:23:33 (UTC-8) Comment Actions
This revision is now accepted and ready to land.Dec 19 2022, 8:42 AM2022-12-19 08:42:43 (UTC-8) Harbormaster failed remote builds in B14365: Diff 19614!Dec 19 2022, 8:52 AM2022-12-19 08:52:46 (UTC-8) Harbormaster failed remote builds in B14404: Diff 19655!Dec 19 2022, 9:54 AM2022-12-19 09:54:38 (UTC-8) Harbormaster failed remote builds in B14547: Diff 19807!Dec 20 2022, 11:06 AM2022-12-20 11:06:25 (UTC-8) This revision was landed with ongoing or failed builds.Dec 20 2022, 12:00 PM2022-12-20 12:00:45 (UTC-8) Closed by commit rCOMM947d6dacdec9: [native] [8/40] RN 0.70: Ruby 2.7.5 (authored by ashoat). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 19465 native/Gemfile
|
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.