mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-25 12:35:01 +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;
|
return this._summary.data.membership;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get isDirectMessage() {
|
||||||
|
return this._summary.data.isDirectMessage;
|
||||||
|
}
|
||||||
|
|
||||||
isDirectMessageForUserId(userId) {
|
isDirectMessageForUserId(userId) {
|
||||||
if (this._summary.data.dmUserId === userId) {
|
if (this._summary.data.dmUserId === userId) {
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user