You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2026-01-03 23:22:30 +03:00
Add await to ensure we wait for backup errors
Signed-off-by: J. Ryan Stinnett <jryans@gmail.com>
This commit is contained in:
@@ -1128,7 +1128,7 @@ Crypto.prototype.backupAllGroupSessions = async function(version) {
|
||||
|
||||
let numKeysBackedUp;
|
||||
do {
|
||||
numKeysBackedUp = this._backupPendingKeys(KEY_BACKUP_KEYS_PER_REQUEST);
|
||||
numKeysBackedUp = await this._backupPendingKeys(KEY_BACKUP_KEYS_PER_REQUEST);
|
||||
} while (numKeysBackedUp > 0);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user