Page MenuHomePhabricator

[Keyserver] Refactor prekey lifecycle logic
AbandonedPublic

Authored by jon on Jul 11 2023, 10:00 AM.
Tags
None
Referenced Files
F6290366: D8474.id.diff
Sat, Apr 26, 1:36 AM
Unknown Object (File)
Sat, Apr 19, 5:00 AM
Unknown Object (File)
Fri, Apr 18, 10:37 AM
Unknown Object (File)
Thu, Apr 17, 1:58 AM
Unknown Object (File)
Mar 16 2025, 11:14 PM
Unknown Object (File)
Mar 4 2025, 8:35 PM
Unknown Object (File)
Mar 4 2025, 8:34 PM
Unknown Object (File)
Mar 4 2025, 8:27 PM
Subscribers

Details

Reviewers
kamil
michal
Summary

This is useful in implementing the identity
integration, refactor this logic into their own methods.

Part of https://linear.app/comm/issue/ENG-3944

Depends on D8473

Test Plan

N/A, tested in later diff

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

kamil added inline comments.
keyserver/src/utils/olm-utils.js
92–101

you can early exit here to make the return statement simpler (this also applies to shouldRotatePrekey)

103

based on the previous stack async here is not needed but it looks like you did not rebase this diff

This revision is now accepted and ready to land.Jul 17 2023, 2:48 AM
jon marked 2 inline comments as done.

I rebased this into D8476. But I applied your suggestion @kamil, thanks