Page MenuHomePhabricator

[keyserver] delete marking prekeys as published each time `olm` account is accessed
ClosedPublic

Authored by kamil on Oct 9 2023, 7:05 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, May 4, 5:01 PM
Unknown Object (File)
Sat, May 4, 5:01 PM
Unknown Object (File)
Sat, May 4, 4:58 PM
Unknown Object (File)
Sat, May 4, 4:27 PM
Unknown Object (File)
Thu, May 2, 12:18 AM
Unknown Object (File)
Thu, May 2, 12:09 AM
Unknown Object (File)
Wed, May 1, 11:28 PM
Unknown Object (File)
Wed, May 1, 7:20 PM
Subscribers

Details

Summary

Issue: ENG-3944.

This is part of D8476 (breaking this for smaller diffs because it's complex).

Keys should be marked as published only on:

Depends on D9421

Test Plan

N/A (but tested in previous diff that after actual publishing, keys are marked as published).

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kamil held this revision as a draft.
kamil published this revision for review.Oct 9 2023, 8:19 AM
This revision is now accepted and ready to land.Oct 10 2023, 3:33 AM

I noticed that when Jon was first working on this, he copy-pasted some of @marcin's functions and kept the same name. Since that point, it appears that the copy-pasted functions have diverged. I think we should look to deduplicate them, or maybe have one call the other. We should certainly rename them to have different names if we are going to keep both.

I found retrieveAccountKeysSet to be duplicated like this. I'm not sure, but there may be more. Separately, it looks like there is a lot of code duplication between getOlmSessionInitializationDataResponder and registerOrLogin.

No need to block landing this stack on this – feel free to create a follow-up task or another diff (before landing) if preferred.

I noticed that when Jon was first working on this, he copy-pasted some of @marcin's functions and kept the same name. Since that point, it appears that the copy-pasted functions have diverged. I think we should look to deduplicate them, or maybe have one call the other. We should certainly rename them to have different names if we are going to keep both.

I found retrieveAccountKeysSet to be duplicated like this. I'm not sure, but there may be more. Separately, it looks like there is a lot of code duplication between getOlmSessionInitializationDataResponder and registerOrLogin.

No need to block landing this stack on this – feel free to create a follow-up task or another diff (before landing) if preferred.

D9450