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)
Thu, Dec 19, 6:28 AM
Unknown Object (File)
Thu, Dec 19, 6:28 AM
Unknown Object (File)
Thu, Dec 19, 6:28 AM
Unknown Object (File)
Thu, Dec 19, 6:28 AM
Unknown Object (File)
Thu, Dec 19, 6:28 AM
Unknown Object (File)
Thu, Dec 19, 6:28 AM
Unknown Object (File)
Wed, Dec 4, 8:35 PM
Unknown Object (File)
Wed, Dec 4, 8:35 PM
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.