You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-28 05:03:59 +03:00
Emit for key backup failures
Signed-off-by: J. Ryan Stinnett <jryans@gmail.com>
This commit is contained in:
@@ -447,6 +447,7 @@ MatrixClient.prototype.initCrypto = async function() {
|
||||
);
|
||||
|
||||
this.reEmitter.reEmit(crypto, [
|
||||
"crypto.keyBackupFailed",
|
||||
"crypto.roomKeyRequest",
|
||||
"crypto.roomKeyRequestCancellation",
|
||||
"crypto.warning",
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user