Page MenuHomePhabricator

[keyserver] rename `retrieveAccountKeysSet` -> `retrieveSessionInitializationKeysSet`
ClosedPublic

Authored by kamil on Oct 11 2023, 6:09 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Jun 25, 6:25 AM
Unknown Object (File)
Tue, Jun 25, 5:25 AM
Unknown Object (File)
Tue, Jun 25, 5:25 AM
Unknown Object (File)
Tue, Jun 25, 5:24 AM
Unknown Object (File)
Tue, Jun 25, 5:16 AM
Unknown Object (File)
Sun, Jun 23, 8:17 PM
Unknown Object (File)
Sun, Jun 23, 12:15 AM
Unknown Object (File)
Thu, Jun 20, 4:35 PM
Subscribers

Details

Summary

Addresses: https://phab.comm.dev/D9422#276975

We get to the point where there are two functions with the same name, but doing different things. This should make it more consistent to avoid confusion.

Depends on D9427

Test Plan

Flow

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

kamil added inline comments.
keyserver/src/responders/keys-responders.js
56

unifying error codes for the same issue: link

kamil requested review of this revision.Oct 11 2023, 6:26 AM
keyserver/src/responders/keys-responders.js
56

The fact that prekey_signature() method is typed as ?string is not actually correct. If you take a look at the code: https://github.com/CommE2E/olm/blob/main/src/account.cpp it appears that prekey signature is always there as long as there is a prekey. I think it is a relict from the period when prekey() indeed could return undefined. We later decided that prekey will always be generated so we updated prekey() typing but we probably forgot to update prekey_signature() typing.

This revision is now accepted and ready to land.Oct 12 2023, 2:34 AM
keyserver/src/responders/keys-responders.js
56