This repository has been archived on 2022-08-19. You can view files and clone it, but cannot push or open issues or pull requests.
hydrogen-web/src/matrix/storage/idb/stores/RoomSummaryStore.js
Bruno Windels 001dbefbcf stop using default exports
because it becomes hard to remember where you used them and where not
2020-04-20 21:26:39 +02:00

27 lines
365 B
JavaScript

/**
store contains:
roomId
name
lastMessage
unreadCount
mentionCount
isEncrypted
isDirectMessage
membership
inviteCount
joinCount
*/
export class RoomSummaryStore {
constructor(summaryStore) {
this._summaryStore = summaryStore;
}
getAll() {
return this._summaryStore.selectAll();
}
set(summary) {
return this._summaryStore.put(summary);
}
}