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

Merge pull request #443 from matrix-org/rav/es6ify_algorithm_base

crypto/algorithms/base.js: Convert to es6
This commit is contained in:
Richard van der Hoff
2017-05-23 16:36:42 +01:00
committed by GitHub
3 changed files with 113 additions and 120 deletions

View File

@@ -579,7 +579,7 @@ function _decryptEvent(client, event) {
console.warn(
`Error decrypting event (id=${event.getId()}): ${e}`,
);
if (!(e instanceof Crypto.DecryptionError)) {
if (e.name !== "DecryptionError") {
throw e;
}
_badEncryptedMessage(event, e.message);