This commit is contained in:
Michael Telatynski 2020-09-08 15:09:45 +01:00
parent d0c716d61c
commit 1b99c11b11

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}`;