mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
use idb key range to select non-backed up keys
This commit is contained in:
parent
a499689bd8
commit
b30db544a3
@ -81,7 +81,7 @@ export class InboundGroupSessionStore {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getFirstNonBackedUpSessions(amount: number): Promise<InboundGroupSessionEntry[]> {
|
getFirstNonBackedUpSessions(amount: number): Promise<InboundGroupSessionEntry[]> {
|
||||||
return this._store.index("byBackup").selectLimit(0, amount);
|
return this._store.index("byBackup").selectLimit(this._store.IDBKeyRange.only(BackupStatus.NotBackedUp), amount);
|
||||||
}
|
}
|
||||||
|
|
||||||
async markAsBackedUp(roomId: string, senderKey: string, sessionId: string): Promise<void> {
|
async markAsBackedUp(roomId: string, senderKey: string, sessionId: string): Promise<void> {
|
||||||
|
Loading…
Reference in New Issue
Block a user