Now we are using .wasm database module with logic from native
Depends on D8563
Paths
| Differential D8565 Authored by kamil on Jul 19 2023, 7:55 AM.
Details
Summary Now we are using .wasm database module with logic from native Depends on D8563 Test Plan Flow
Diff Detail
Event Timelinekamil held this revision as a draft. Herald added a subscriber: ashoat. · View Herald TranscriptJul 19 2023, 7:55 AM2023-07-19 07:55:31 (UTC-7) Harbormaster completed remote builds in B21045: Diff 28841.Jul 19 2023, 8:47 AM2023-07-19 08:47:55 (UTC-7) This revision is now accepted and ready to land.Jul 24 2023, 2:23 AM2023-07-24 02:23:23 (UTC-7) Closed by commit rCOMM9cd81259b02d: [web] remove `sql.js` dependency (authored by kamil). · Explain WhyJul 31 2023, 1:55 AM2023-07-31 01:55:11 (UTC-7) This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 28841 web/flow-typed/npm/sql.js_vx.x.x.js
web/package.json
yarn.lock
|
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.