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

Add logging on decryption retries

For https://github.com/vector-im/riot-web/issues/13473
This commit is contained in:
David Baker
2020-05-01 17:36:49 +01:00
parent 3d495b0753
commit d699e98346
2 changed files with 13 additions and 5 deletions

View File

@@ -1601,9 +1601,11 @@ MegolmDecryption.prototype._retryDecryption = async function(senderKey, sessionI
return true;
}
logger.debug("Retrying decryption on events", [...pending]);
await Promise.all([...pending].map(async (ev) => {
try {
await ev.attemptDecryption(this._crypto);
await ev.attemptDecryption(this._crypto, true);
} catch (e) {
// don't die if something goes wrong
}