Allow user (for now only staff) to enable in disable automatic backup.
Toggle will be introduced in next diff.
Depends on D9003
Paths
| Differential D9010 Authored by kamil on Aug 29 2023, 7:35 AM.
Details
Diff Detail
Event Timelinekamil held this revision as a draft. Herald added subscribers: tomek, ashoat. · View Herald TranscriptAug 29 2023, 7:35 AM2023-08-29 07:35:55 (UTC-7) kamil added a child revision: D9011: [client-backup] add backup menu screen.Aug 29 2023, 7:37 AM2023-08-29 07:37:07 (UTC-7) Harbormaster completed remote builds in B22223: Diff 30499.Aug 29 2023, 7:53 AM2023-08-29 07:53:01 (UTC-7) This revision is now accepted and ready to land.Aug 29 2023, 9:29 AM2023-08-29 09:29:42 (UTC-7) Harbormaster completed remote builds in B22368: Diff 30735.Sep 4 2023, 3:29 AM2023-09-04 03:29:45 (UTC-7) This revision is now accepted and ready to land.Sep 4 2023, 8:34 AM2023-09-04 08:34:00 (UTC-7) Closed by commit rCOMM560da778d96e: [client-backup] add local settings to store (authored by kamil). · Explain WhySep 5 2023, 5:13 AM2023-09-05 05:13:17 (UTC-7) This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 30735 native/backup/backup-handler.js
native/redux/action-types.js
native/redux/redux-setup.js
native/redux/state-types.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.