forked from mystiq/hydrogen-web
expose props on Room
This commit is contained in:
parent
739d74bf9c
commit
7458465ef6
1 changed files with 12 additions and 0 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue