From 55ecb40190c68a7c0980b70ba6eb705d8720cdfa Mon Sep 17 00:00:00 2001 From: Hubert Chathi Date: Tue, 7 Jan 2020 10:55:47 -0500 Subject: [PATCH] don't keep processing if we have an error --- src/crypto/OlmDevice.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/crypto/OlmDevice.js b/src/crypto/OlmDevice.js index 0c3161c34..7a0434682 100644 --- a/src/crypto/OlmDevice.js +++ b/src/crypto/OlmDevice.js @@ -1035,6 +1035,7 @@ OlmDevice.prototype.decryptGroupMessage = async function( } else { error = e; } + return; } let plaintext = res.plaintext; @@ -1061,6 +1062,7 @@ OlmDevice.prototype.decryptGroupMessage = async function( "Duplicate message index, possible replay attack: " + messageIndexKey, ); + return; } } this._inboundGroupSessionMessageIndexes[messageIndexKey] = {