Don't include server in DM links if not needed
This commit is contained in:
parent
e6eeb9ede8
commit
c04a0a2638
5 changed files with 28 additions and 5 deletions
|
|
@ -109,7 +109,7 @@ export default {
|
|||
return this.$navigation && this.$navigation.canPop();
|
||||
},
|
||||
directMessageLink() {
|
||||
return `${window.location.origin + window.location.pathname}#/user/${encodeURIComponent(this.$matrix.currentUser.user_id)}`
|
||||
return this.$router.getDMLink(this.$matrix.currentUser, this.$config);
|
||||
},
|
||||
shareSupported() {
|
||||
return !!navigator.share;
|
||||
|
|
|
|||
|
|
@ -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 (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue