1
0
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:
J. Ryan Stinnett
2018-12-13 12:04:43 +00:00
parent 66cdb62a3d
commit c5f6f87a6c

View File

@@ -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);
};