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

Schedule key upload on enabling backup

This ensures a partially completed backup will continue to make progress.
This commit is contained in:
J. Ryan Stinnett
2019-01-08 18:17:46 -06:00
parent 0cbced43bd
commit 5cfd082b00
2 changed files with 6 additions and 2 deletions

View File

@@ -843,6 +843,10 @@ MatrixClient.prototype.enableKeyBackup = function(info) {
this._crypto.backupKey.set_recipient_key(info.auth_data.public_key);
this.emit('crypto.keyBackupStatus', true);
// There may be keys left over from a partially completed backup, so
// schedule a send to check.
this._crypto.scheduleKeyBackupSend();
};
/**