pull/21833/head
Michael Telatynski 2020-09-08 15:09:45 +01:00
parent d0c716d61c
commit 1b99c11b11
1 changed files with 1 additions and 2 deletions

View File

@ -333,8 +333,7 @@ export function tryTransformPermalinkToLocalHref(permalink: string): string {
const eventIdPart = permalinkParts.eventId ? `/${permalinkParts.eventId}` : '';
permalink = `#/room/${permalinkParts.roomIdOrAlias}${eventIdPart}`;
if (permalinkParts.viaServers.length > 0) {
const riotPermalinkConstructor = new SpecPermalinkConstructor();
permalink += riotPermalinkConstructor.encodeServerCandidates(permalinkParts.viaServers);
permalink += new SpecPermalinkConstructor().encodeServerCandidates(permalinkParts.viaServers);
}
} else if (permalinkParts.groupId) {
permalink = `#/group/${permalinkParts.groupId}`;