don't discount already finished keys in total for previous iterations
This commit is contained in:
parent
dacaa86386
commit
6541aacf98
1 changed files with 1 additions and 1 deletions
|
@ -116,7 +116,7 @@ export class KeyBackup {
|
|||
const txn = await this.storage.readTxn([StoreNames.inboundGroupSessions]);
|
||||
setAbortable(txn);
|
||||
// fetch total again on each iteration as while we are flushing, sync might be adding keys
|
||||
total = await txn.inboundGroupSessions.countNonBackedUpSessions();
|
||||
total = amountFinished + await txn.inboundGroupSessions.countNonBackedUpSessions();
|
||||
setProgress(new Progress(total, amountFinished));
|
||||
const keysNeedingBackup = (await txn.inboundGroupSessions.getFirstNonBackedUpSessions(KEYS_PER_REQUEST))
|
||||
.map(entry => new StoredRoomKey(entry));
|
||||
|
|
Reference in a new issue