forked from mystiq/hydrogen-web
Add isDirectMessage in base room
This commit is contained in:
parent
959c03f12f
commit
01cb66ccbf
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue