Page MenuHomePhabricator

[lib][native] Introduce deviceID parameter to initial notif message function
ClosedPublic

Authored by tomek on Jan 17 2024, 6:51 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Oct 24, 4:59 AM
Unknown Object (File)
Wed, Oct 23, 10:52 AM
Unknown Object (File)
Wed, Oct 23, 2:50 AM
Unknown Object (File)
Wed, Oct 23, 2:50 AM
Unknown Object (File)
Wed, Oct 23, 2:49 AM
Unknown Object (File)
Tue, Oct 22, 4:41 PM
Unknown Object (File)
Tue, Oct 22, 4:41 PM
Unknown Object (File)
Tue, Oct 22, 4:41 PM
Subscribers

Details

Summary

This function will be used in connection handlers which are aware of the device id. This diff doesn't change any logic - the actual changes will be handled as a part of preparing notifs for multiple keyservers.

Test Plan

Check if encrypted notifs are received by iOS device.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

tomek held this revision as a draft.
tomek published this revision for review.Jan 17 2024, 8:50 AM
This revision is now accepted and ready to land.Jan 18 2024, 7:28 AM
lib/keyserver-conn/recovery-utils.js
49 ↗(On Diff #35722)

Name of this parameter is quite confusing. Is it possible to rename it something that makes it clear this is the keyserver ID?

lib/keyserver-conn/recovery-utils.js
49 ↗(On Diff #35722)

In the future, we should be able to have a notif session with any device, not just the keyserver. But then, we will be creating two notif sessions, so this code will be changed regardless. So for now, it might make sense to have a kserverID instead.