From 7458465ef61cad33000c87755b57d5a2cfc836b3 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Fri, 21 Aug 2020 11:56:45 +0200 Subject: [PATCH] expose props on Room --- src/matrix/room/Room.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/matrix/room/Room.js b/src/matrix/room/Room.js index 75978b27..9d543e7d 100644 --- a/src/matrix/room/Room.js +++ b/src/matrix/room/Room.js @@ -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,