expose own user on BaseRoom
so we don't have to pass session around everywhere we need this
This commit is contained in:
parent
8ba1d085f6
commit
c8b5c6dd41
1 changed files with 4 additions and 0 deletions
|
@ -446,6 +446,10 @@ export class BaseRoom extends EventEmitter {
|
|||
return this._summary.data.membership;
|
||||
}
|
||||
|
||||
get user() {
|
||||
return this._user;
|
||||
}
|
||||
|
||||
isDirectMessageForUserId(userId) {
|
||||
if (this._summary.data.dmUserId === userId) {
|
||||
return true;
|
||||
|
|
Reference in a new issue