mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
expose props on Room
This commit is contained in:
parent
739d74bf9c
commit
7458465ef6
@ -184,6 +184,18 @@ export class Room extends EventEmitter {
|
||||
return this._summary.avatarUrl;
|
||||
}
|
||||
|
||||
get lastMessageTimestamp() {
|
||||
return this._summary.lastMessageTimestamp;
|
||||
}
|
||||
|
||||
get isUnread() {
|
||||
return this._summary.isUnread;
|
||||
}
|
||||
|
||||
get notificationCount() {
|
||||
return this._summary.notificationCount;
|
||||
}
|
||||
|
||||
async clearUnread() {
|
||||
const txn = await this._storage.readWriteTxn([
|
||||
this._storage.storeNames.roomSummary,
|
||||
|
Loading…
Reference in New Issue
Block a user