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 {