Don't include server in DM links if not needed

This commit is contained in:
N-Pex 2023-10-09 19:10:07 +02:00
parent e6eeb9ede8
commit c04a0a2638
5 changed files with 28 additions and 5 deletions

View file

@ -243,7 +243,7 @@ export default {
return this.$matrix.currentUser.user_id
},
directMessageLink() {
return `${window.location.origin + window.location.pathname}#/user/${this.currentUserId}`
return this.$router.getDMLink(this.$matrix.currentUser, this.$config);
},
passwordsMatch() {
return (