Page MenuHomePhabricator

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

Authored by kamil on Oct 11 2023, 6:09 AM.
Tags
None
Referenced Files
F3273685: D9450.id32032.diff
Sat, Nov 16, 6:12 AM
Unknown Object (File)
Sun, Oct 27, 3:13 PM
Unknown Object (File)
Sun, Oct 27, 3:13 PM
Unknown Object (File)
Sun, Oct 27, 3:13 PM
Unknown Object (File)
Sun, Oct 27, 3:11 PM
Unknown Object (File)
Sep 27 2024, 9:21 PM
Unknown Object (File)
Sep 22 2024, 4:47 AM
Unknown Object (File)
Sep 12 2024, 2:04 AM
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
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kamil added inline comments.
keyserver/src/responders/keys-responders.js
56 ↗(On Diff #31928)

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 ↗(On Diff #31928)

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 ↗(On Diff #31928)