diff --git a/src/bit-systems/link-hover-menu.ts b/src/bit-systems/link-hover-menu.ts index 2b7bd6efd5..44469d5326 100644 --- a/src/bit-systems/link-hover-menu.ts +++ b/src/bit-systems/link-hover-menu.ts @@ -70,13 +70,13 @@ async function handleLinkClick(world: HubsWorld, button: EntityID) { // move to waypoint w/o writing to history window.history.replaceState(null, "", window.location.href.split("#")[0] + url.hash); break; - case LinkType.LOCAL_ROOM: + case LinkType.ROOM: const waypoint = url.hash && url.hash.substring(1); // move to new room without page load or entry flow const hubId = hubIdFromUrl(url); changeHub(hubId, true, waypoint); break; - case LinkType.EXTERNAL_ROOM: + case LinkType.ROOM_URL: await exitImmersive(); location.href = src; break; @@ -107,8 +107,8 @@ function updateButtonText(world: HubsWorld, menu: EntityID, button: EntityID) { case LinkType.WAYPOINT: label = "go to"; break; - case LinkType.LOCAL_ROOM: - case LinkType.EXTERNAL_ROOM: + case LinkType.ROOM: + case LinkType.ROOM_URL: label = "visit room"; break; } diff --git a/src/bit-systems/link-system.ts b/src/bit-systems/link-system.ts index 8776909737..1ea3b9dd1a 100644 --- a/src/bit-systems/link-system.ts +++ b/src/bit-systems/link-system.ts @@ -21,9 +21,9 @@ export function linkSystem(world: HubsWorld) { if (url.hash && APP.hub!.hub_id === hubId) { Link.type[eid] = LinkType.WAYPOINT; } else if (await isLocalHubsUrl(src)) { - Link.type[eid] = LinkType.LOCAL_ROOM; + Link.type[eid] = LinkType.ROOM; } else { - Link.type[eid] = LinkType.EXTERNAL_ROOM; + Link.type[eid] = LinkType.ROOM_URL; } } }); diff --git a/src/inflators/link.ts b/src/inflators/link.ts index d8e06d1433..66c061c1b9 100644 --- a/src/inflators/link.ts +++ b/src/inflators/link.ts @@ -6,8 +6,8 @@ export enum LinkType { LINK = 0, AVATAR = 1, SCENE = 2, - LOCAL_ROOM = 3, - EXTERNAL_ROOM = 4, + ROOM = 3, + ROOM_URL = 4, WAYPOINT = 5 }