Don't include via when sharing room alias

Signed-off-by: Aaron Raimist <aaron@raim.ist>
pull/21833/head
Aaron Raimist 2021-05-29 01:37:19 -05:00
parent 890ac14090
commit 53ebf3b8e3
No known key found for this signature in database
GPG Key ID: 37419210002890EF
1 changed files with 1 additions and 1 deletions

View File

@ -149,7 +149,7 @@ export class RoomPermalinkCreator {
// Prefer to use canonical alias for permalink if possible
const alias = this.room.getCanonicalAlias();
if (alias) {
return getPermalinkConstructor().forRoom(alias, this._serverCandidates);
return getPermalinkConstructor().forRoom(alias);
}
}
return getPermalinkConstructor().forRoom(this.roomId, this._serverCandidates);