2019-02-07 06:21:48 +05:30
|
|
|
/**
|
|
|
|
store contains:
|
|
|
|
roomId
|
|
|
|
name
|
|
|
|
lastMessage
|
|
|
|
unreadCount
|
|
|
|
mentionCount
|
|
|
|
isEncrypted
|
|
|
|
isDirectMessage
|
|
|
|
membership
|
2019-02-11 01:55:29 +05:30
|
|
|
inviteCount
|
|
|
|
joinCount
|
2019-02-07 06:21:48 +05:30
|
|
|
*/
|
2020-04-21 00:56:39 +05:30
|
|
|
export class RoomSummaryStore {
|
2019-02-07 06:21:48 +05:30
|
|
|
constructor(summaryStore) {
|
|
|
|
this._summaryStore = summaryStore;
|
|
|
|
}
|
|
|
|
|
|
|
|
getAll() {
|
|
|
|
return this._summaryStore.selectAll();
|
|
|
|
}
|
2019-02-11 01:55:29 +05:30
|
|
|
|
|
|
|
set(summary) {
|
|
|
|
return this._summaryStore.put(summary);
|
|
|
|
}
|
2019-02-07 06:21:48 +05:30
|
|
|
}
|