expose own user on BaseRoom

so we don't have to pass session around everywhere we need this
This commit is contained in:
Bruno Windels 2022-06-02 17:30:17 +02:00
parent 8ba1d085f6
commit c8b5c6dd41

View file

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