Page MenuHomePhabricator

D12442.diff
No OneTemporary

D12442.diff

diff --git a/keyserver/src/utils/olm-utils.js b/keyserver/src/utils/olm-utils.js
--- a/keyserver/src/utils/olm-utils.js
+++ b/keyserver/src/utils/olm-utils.js
@@ -253,6 +253,12 @@
contentAccount: OlmAccount,
notifAccount: OlmAccount,
): Promise<void> {
+ if (contentAccount.unpublished_prekey()) {
+ await publishPrekeysToIdentity(contentAccount, notifAccount);
+ contentAccount.mark_prekey_as_published();
+ notifAccount.mark_prekey_as_published();
+ return;
+ }
// Since keys are rotated synchronously, only check validity of one
if (shouldRotatePrekey(contentAccount)) {
contentAccount.generate_prekey();

File Metadata

Mime Type
text/plain
Expires
Thu, Dec 5, 10:56 AM (15 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2616833
Default Alt Text
D12442.diff (641 B)

Event Timeline