Page MenuHomePhabricator

[Keyserver] Refactor prekey lifecycle logic
AbandonedPublic

Authored by jon on Jul 11 2023, 10:00 AM.
Tags
None
Referenced Files
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)
Oct 10 2024, 1:14 PM
Unknown Object (File)
Sep 27 2024, 7:48 PM
Unknown Object (File)
Sep 19 2024, 5:52 PM
Unknown Object (File)
Sep 19 2024, 5:52 PM
Unknown Object (File)
Sep 19 2024, 5:44 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