From 01cb66ccbf93b191eab9ea132c2eeba71ee51619 Mon Sep 17 00:00:00 2001 From: Ajay Bura Date: Tue, 17 May 2022 12:27:20 +0530 Subject: [PATCH] Add isDirectMessage in base room --- src/matrix/room/BaseRoom.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/matrix/room/BaseRoom.js b/src/matrix/room/BaseRoom.js index 441146fb..7865723b 100644 --- a/src/matrix/room/BaseRoom.js +++ b/src/matrix/room/BaseRoom.js @@ -455,6 +455,10 @@ export class BaseRoom extends EventEmitter { return this._summary.data.membership; } + get isDirectMessage() { + return this._summary.data.isDirectMessage; + } + isDirectMessageForUserId(userId) { if (this._summary.data.dmUserId === userId) { return true;