always show inviter if present

This commit is contained in:
Bruno Windels 2021-04-27 14:42:12 +02:00
parent 87defbfb51
commit b6573258fb

View File

@ -30,7 +30,7 @@ export class InviteViewModel extends ViewModel {
this._closeUrl = this.urlCreator.urlUntilSegment("session"); this._closeUrl = this.urlCreator.urlUntilSegment("session");
this._invite.on("change", this._onInviteChange); this._invite.on("change", this._onInviteChange);
this._inviter = null; this._inviter = null;
if (this._invite.inviter && ! this._invite.isDirectMessage) { if (this._invite.inviter) {
this._inviter = new RoomMemberViewModel(this._invite.inviter, mediaRepository, this.platform); this._inviter = new RoomMemberViewModel(this._invite.inviter, mediaRepository, this.platform);
} }
} }