Skip to content

Commit

Permalink
Remove dm user option
Browse files Browse the repository at this point in the history
- 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>
  • Loading branch information
MidhunSureshR committed Aug 2, 2021
1 parent 4e3b2cf commit 40377d3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
4 changes: 0 additions & 4 deletions src/domain/session/rightpanel/MemberDetailsViewModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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`)
])
]);
Expand Down

0 comments on commit 40377d3

Please sign in to comment.