mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
only take into account non-backed up keys for counting
This commit is contained in:
parent
7d3e3b992b
commit
eb134a6c47
@ -77,7 +77,7 @@ export class InboundGroupSessionStore {
|
||||
this._store.delete(range);
|
||||
}
|
||||
countNonBackedUpSessions(): Promise<number> {
|
||||
return this._store.index("byBackup").count();
|
||||
return this._store.index("byBackup").count(this._store.IDBKeyRange.only(BackupStatus.NotBackedUp));
|
||||
}
|
||||
|
||||
getFirstNonBackedUpSessions(amount: number): Promise<InboundGroupSessionEntry[]> {
|
||||
|
Loading…
Reference in New Issue
Block a user