Page MenuHomePhabricator

Rename cookieID -> cryptoID and deviceToken -> deliveryID
ClosedPublic

Authored by marcin on Jun 11 2024, 10:45 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Nov 25, 6:03 PM
Unknown Object (File)
Mon, Nov 25, 3:43 PM
Unknown Object (File)
Sat, Nov 16, 2:13 PM
Unknown Object (File)
Fri, Nov 1, 6:51 PM
Unknown Object (File)
Oct 17 2024, 11:30 PM
Unknown Object (File)
Oct 14 2024, 6:29 PM
Unknown Object (File)
Oct 13 2024, 3:55 AM
Unknown Object (File)
Oct 13 2024, 3:54 AM
Subscribers

Details

Summary

This differential renames cookieID -> cryptoID and deviceToken -> deliveryID in keyserver and lib push related files. After moving notif generation and encryption to lib deviceToken and cookieID are no longer valid they should be replaced with something more generic.

Test Plan
  1. Flow
  2. Test all notifs for all platforms and large notifs as well.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Probably you know it better so up to you but for me recipientID seems better than cryptoID

This revision is now accepted and ready to land.Jun 19 2024, 3:32 PM

Probably you know it better so up to you but for me recipientID seems better than cryptoID

cryptoID is the id of the olm session to use to encrypt notification. On the native olm sessions will be matched by deviceID which will also be the id of the recipient. But on the keyserver recipientID would rather mean deviceToken, byt encryption is done based on cookieID.