1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-28 05:03:59 +03:00

Add flag to prevent emitting event.decrypted

This commit is contained in:
Germain Souquet
2021-05-10 15:25:07 +01:00
parent 91eee8587e
commit 576f46cb88
3 changed files with 13 additions and 10 deletions

View File

@@ -1692,7 +1692,7 @@ MegolmDecryption.prototype._retryDecryption = async function(senderKey, sessionI
await Promise.all([...pending].map(async (ev) => {
try {
await ev.attemptDecryption(this._crypto, true);
await ev.attemptDecryption(this._crypto, { isRetry: true });
} catch (e) {
// don't die if something goes wrong
}