expose props on Room

This commit is contained in:
Bruno Windels 2020-08-21 11:56:45 +02:00
parent 739d74bf9c
commit 7458465ef6

View File

@ -184,6 +184,18 @@ export class Room extends EventEmitter {
return this._summary.avatarUrl; return this._summary.avatarUrl;
} }
get lastMessageTimestamp() {
return this._summary.lastMessageTimestamp;
}
get isUnread() {
return this._summary.isUnread;
}
get notificationCount() {
return this._summary.notificationCount;
}
async clearUnread() { async clearUnread() {
const txn = await this._storage.readWriteTxn([ const txn = await this._storage.readWriteTxn([
this._storage.storeNames.roomSummary, this._storage.storeNames.roomSummary,