1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-29 16:43:09 +03:00

Emit for key backup failures

Signed-off-by: J. Ryan Stinnett <jryans@gmail.com>
This commit is contained in:
J. Ryan Stinnett
2018-12-13 15:53:29 +00:00
parent c5f6f87a6c
commit 2b734b8e69
2 changed files with 2 additions and 0 deletions

View File

@@ -447,6 +447,7 @@ MatrixClient.prototype.initCrypto = async function() {
);
this.reEmitter.reEmit(crypto, [
"crypto.keyBackupFailed",
"crypto.roomKeyRequest",
"crypto.roomKeyRequestCancellation",
"crypto.warning",

View File

@@ -1023,6 +1023,7 @@ Crypto.prototype._scheduleKeyBackupSend = async function() {
) {
// Backup version has changed or this backup version
// has been deleted
this.emit("crypto.keyBackupFailed", err.data.errcode);
throw err;
}
}