-
services/tunnelbroker/src/libcpp/test/
| | Authored by • max on Nov 17 2022, 2:47 AM. | Unknown Object (File) | Mon, Mar 17, 3:10 AM2025-03-17 03:10:40 (UTC-7) |
| Unknown Object (File) | Mon, Mar 17, 3:09 AM2025-03-17 03:09:56 (UTC-7) |
| Unknown Object (File) | Mon, Mar 17, 3:04 AM2025-03-17 03:04:41 (UTC-7) |
| Unknown Object (File) | Mar 6 2025, 1:55 AM2025-03-06 01:55:53 (UTC-8) |
| Unknown Object (File) | Feb 14 2025, 12:55 PM2025-02-14 12:55:43 (UTC-8) |
| Unknown Object (File) | Feb 14 2025, 12:55 PM2025-02-14 12:55:39 (UTC-8) |
| Unknown Object (File) | Feb 13 2025, 2:36 PM2025-02-13 14:36:55 (UTC-8) |
| Unknown Object (File) | Feb 13 2025, 9:19 AM2025-02-13 09:19:21 (UTC-8) |
This is a draft revision that has not yet been submitted for review. - Repository
- rCOMM Comm
- Branch
- add-findSessionItemByDeviceID-test
- Lint
-
- Unit
-
Event Timeline• max created this revision. • max held this revision as a draft. Path | Size |
---|
| services/ | tunnelbroker/ | src/ | libcpp/ | test/ |
| | | 28 lines |
Commit | Tree | Parents | Author | Summary | Date |
---|
c28c90e19dd6 | 7ac605680689 | e7bdbdc8606f | Max Kalashnikoff | [services] Tunnelbroker - Add test for the `findSessionItemByDeviceID` function (Show More…) | Nov 17 2022, 2:47 AM |
|
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.