Page MenuHomePhabricator

Rename cookieID -> cryptoID and deviceToken -> deliveryID
ClosedPublic

Authored by marcin on Jun 11 2024, 10:45 AM.
Tags
None
Referenced Files
F2838213: D12398.id42013.diff
Sat, Sep 28, 9:19 PM
F2836985: D12398.id41215.diff
Sat, Sep 28, 5:35 PM
Unknown Object (File)
Fri, Sep 27, 3:17 PM
Unknown Object (File)
Fri, Sep 6, 4:06 AM
Unknown Object (File)
Tue, Sep 3, 7:10 PM
Unknown Object (File)
Tue, Sep 3, 7:10 PM
Unknown Object (File)
Tue, Sep 3, 7:10 PM
Unknown Object (File)
Tue, Sep 3, 7:10 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.