Add isDirectMessage in base room

This commit is contained in:
Ajay Bura 2022-05-17 12:27:20 +05:30
parent 959c03f12f
commit 01cb66ccbf

View File

@ -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;