only take into account non-backed up keys for counting
This commit is contained in:
parent
7d3e3b992b
commit
eb134a6c47
1 changed files with 1 additions and 1 deletions
|
@ -77,7 +77,7 @@ export class InboundGroupSessionStore {
|
||||||
this._store.delete(range);
|
this._store.delete(range);
|
||||||
}
|
}
|
||||||
countNonBackedUpSessions(): Promise<number> {
|
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[]> {
|
getFirstNonBackedUpSessions(amount: number): Promise<InboundGroupSessionEntry[]> {
|
||||||
|
|
Reference in a new issue