issue: ENG-8442
Details
- Reviewers
tomek kamil - Commits
- rCOMM7143343df124: [lib] Add useNewThickThread
Tested with the next diff, tested that it is possible to create a thick thread
Diff Detail
- Repository
- rCOMM Comm
- Lint
No Lint Coverage - Unit
No Test Coverage
Event Timeline
lib/types/thread-types.js | ||
---|---|---|
324–334 ↗ | (On Diff #43889) | When spreading, you lose the read-only properties. These need to be wrapped in $ReadOnly, and it would be good to apply the same to the other types in this file |
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.