diff --git a/src/utils/permalinks/RoomPermalinkCreator.js b/src/utils/permalinks/RoomPermalinkCreator.js index 88bcd5768a..7df204a17b 100644 --- a/src/utils/permalinks/RoomPermalinkCreator.js +++ b/src/utils/permalinks/RoomPermalinkCreator.js @@ -280,6 +280,9 @@ export function makeGroupPermalink(groupId) { } export function isPermalinkHost(host: string): boolean { + // Always check if the permalink is a spec permalink (callers are likely to call + // parsePermalink after this function). + if (new SpecPermalinkConstructor().isPermalinkHost(host)) return true; return getPermalinkConstructor().isPermalinkHost(host); }