mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 19:45:05 +01:00
Update signatures in other stores to return promises
This commit is contained in:
parent
88ecc58b14
commit
3b5b91cf1b
@ -47,7 +47,7 @@ export class InviteStore {
|
|||||||
return this._inviteStore.selectAll();
|
return this._inviteStore.selectAll();
|
||||||
}
|
}
|
||||||
|
|
||||||
set(invite: InviteData): void {
|
set(invite: InviteData): Promise<IDBValidKey> {
|
||||||
return this._inviteStore.put(invite);
|
return this._inviteStore.put(invite);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -42,7 +42,7 @@ export class RoomSummaryStore {
|
|||||||
return this._summaryStore.selectAll();
|
return this._summaryStore.selectAll();
|
||||||
}
|
}
|
||||||
|
|
||||||
set(summary: SummaryData): void {
|
set(summary: SummaryData): Promise<IDBValidKey> {
|
||||||
return this._summaryStore.put(summary);
|
return this._summaryStore.put(summary);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -55,7 +55,7 @@ export class RoomSummaryStore {
|
|||||||
return roomId === fetchedKey;
|
return roomId === fetchedKey;
|
||||||
}
|
}
|
||||||
|
|
||||||
remove(roomId: string): void {
|
remove(roomId: string): Promise<undefined> {
|
||||||
return this._summaryStore.delete(roomId);
|
return this._summaryStore.delete(roomId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user