mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-24 20:14:53 +01:00
Add isDirectMessage in base room
This commit is contained in:
parent
959c03f12f
commit
01cb66ccbf
@ -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 New Issue
Block a user