Remove dm user option

- I don't know why but I thought .../open-room/<user_id> would open an
  invite view to a room with the specified user.
- Does not work like that, so removed.

Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
RMidhunSuresh 2021-07-23 12:43:16 +05:30
parent d056a9f961
commit 0ff0850979
2 changed files with 0 additions and 5 deletions

View file

@ -75,10 +75,6 @@ export class MemberDetailsViewModel extends ViewModel {
return this._isEncrypted;
}
get dmLink() {
return `${this.urlCreator.urlUntilSegment("session")}/open-room/${this._member.userId}`;
}
get linkToUser() {
return `https://matrix.to/#/${this._member.userId}`;
}

View file

@ -47,7 +47,6 @@ export class MemberDetailsView extends TemplateView {
t.div({className: "MemberDetailsView_label"}, vm.i18n`OPTIONS`),
t.div({className: "MemberDetailsView_options"},
[
t.a({href: vm.dmLink}, vm.i18n`Direct Message`),
t.a({href: vm.linkToUser, target: "_blank", rel: "noopener"}, vm.i18n`Open Link to User`)
])
]);