From a2c54279124adff468f3389412a368d0cf82bc67 Mon Sep 17 00:00:00 2001 From: Audric Ackermann Date: Tue, 17 Nov 2020 13:30:41 +1100 Subject: [PATCH] do not trigger endSession if we end get a missing prekey --- js/signal_protocol_store.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/signal_protocol_store.js b/js/signal_protocol_store.js index 8229525e4..0c8ed820f 100644 --- a/js/signal_protocol_store.js +++ b/js/signal_protocol_store.js @@ -232,7 +232,8 @@ }; } - throw new textsecure.PreKeyMissing(); + // throw new textsecure.PreKeyMissing(); + return undefined; }, async loadPreKeyForContact(contactPubKey) { const key = await window.Signal.Data.getPreKeyByRecipient(contactPubKey);