Page MenuHomePhabricator

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

Authored by kamil on Oct 11 2023, 6:09 AM.
Tags
None
Referenced Files
F2082097: D9450.id.diff
Sun, Jun 23, 12:15 AM
Unknown Object (File)
Thu, Jun 20, 4:35 PM
Unknown Object (File)
Fri, Jun 14, 7:47 PM
Unknown Object (File)
Sun, May 26, 12:54 AM
Unknown Object (File)
May 19 2024, 5:05 AM
Unknown Object (File)
May 4 2024, 5:00 PM
Unknown Object (File)
May 4 2024, 5:00 PM
Unknown Object (File)
May 4 2024, 4:58 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
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)