From eb134a6c47df35cc14026bcd304bd2610abcddfc Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Fri, 28 Jan 2022 13:18:03 +0100 Subject: [PATCH] only take into account non-backed up keys for counting --- src/matrix/storage/idb/stores/InboundGroupSessionStore.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/matrix/storage/idb/stores/InboundGroupSessionStore.ts b/src/matrix/storage/idb/stores/InboundGroupSessionStore.ts index a2ccae95..4d3497a4 100644 --- a/src/matrix/storage/idb/stores/InboundGroupSessionStore.ts +++ b/src/matrix/storage/idb/stores/InboundGroupSessionStore.ts @@ -77,7 +77,7 @@ export class InboundGroupSessionStore { this._store.delete(range); } countNonBackedUpSessions(): Promise { - return this._store.index("byBackup").count(); + return this._store.index("byBackup").count(this._store.IDBKeyRange.only(BackupStatus.NotBackedUp)); } getFirstNonBackedUpSessions(amount: number): Promise {