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)
Tue, May 7, 2:50 PM
Unknown Object (File)
Sat, May 4, 10:40 PM
Unknown Object (File)
Tue, Apr 16, 7:40 AM
Unknown Object (File)
Sat, Apr 13, 8:26 AM
Unknown Object (File)
Fri, Apr 12, 4:16 PM
Unknown Object (File)
Apr 11 2024, 4:25 AM
Unknown Object (File)
Apr 10 2024, 8:43 AM
Unknown Object (File)
Apr 9 2024, 4:33 AM
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