diff --git a/src/matrix/storage/idb/stores/InviteStore.ts b/src/matrix/storage/idb/stores/InviteStore.ts index 971d3fe3..8543fa31 100644 --- a/src/matrix/storage/idb/stores/InviteStore.ts +++ b/src/matrix/storage/idb/stores/InviteStore.ts @@ -47,7 +47,7 @@ export class InviteStore { return this._inviteStore.selectAll(); } - set(invite: InviteData): void { + set(invite: InviteData): Promise { return this._inviteStore.put(invite); } diff --git a/src/matrix/storage/idb/stores/RoomSummaryStore.ts b/src/matrix/storage/idb/stores/RoomSummaryStore.ts index 7b6ed600..e4101ad9 100644 --- a/src/matrix/storage/idb/stores/RoomSummaryStore.ts +++ b/src/matrix/storage/idb/stores/RoomSummaryStore.ts @@ -42,7 +42,7 @@ export class RoomSummaryStore { return this._summaryStore.selectAll(); } - set(summary: SummaryData): void { + set(summary: SummaryData): Promise { return this._summaryStore.put(summary); } @@ -55,7 +55,7 @@ export class RoomSummaryStore { return roomId === fetchedKey; } - remove(roomId: string): void { + remove(roomId: string): Promise { return this._summaryStore.delete(roomId); } }