Use the keyserver keys to create the sessions.
Depends on D10666
Differential D10667
[lib] Create notifs Olm session tomek on Jan 17 2024, 8:16 AM. Authored by Tags None Referenced Files
Subscribers
Details
Use the keyserver keys to create the sessions. Depends on D10666 Get access token, set it, and check if the session is created correctly... At this point it isn't because of invalid signature, probably due to prekey format - I'm investigating it.
Diff Detail
Event Timeline
Comment Actions I am confused by this differential. I have two questions:
Comment Actions Currently, this code is gated behind usingCommServicesAccessToken flag, so it won't break the current logic.
|
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.