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)
Fri, Dec 20, 2:00 AM
Unknown Object (File)
Mon, Dec 16, 6:06 PM
Unknown Object (File)
Mon, Dec 16, 10:27 AM
Unknown Object (File)
Sat, Dec 14, 9:01 PM
Unknown Object (File)
Wed, Nov 27, 1:21 AM
Unknown Object (File)
Nov 16 2024, 5:46 PM
Unknown Object (File)
Oct 27 2024, 3:13 PM
Unknown Object (File)
Oct 27 2024, 3:13 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