Add body link fallback handler for in-app navigation (#7627)

This commit is contained in:
J. Ryan Stinnett
2022-01-25 14:31:00 +00:00
committed by GitHub
parent 51fd4d82fd
commit fad65f9582
4 changed files with 36 additions and 11 deletions

View File

@@ -328,7 +328,7 @@ export function tryTransformEntityToPermalink(entity: string): string {
if (!entity) return null;
// Check to see if it is a bare entity for starters
{if (entity[0] === '#' || entity[0] === '!') return makeRoomPermalink(entity);}
if (entity[0] === '#' || entity[0] === '!') return makeRoomPermalink(entity);
if (entity[0] === '@') return makeUserPermalink(entity);
if (entity[0] === '+') return makeGroupPermalink(entity);