From c90df2db7b1c062be008b9c7915522fa01ca89e3 Mon Sep 17 00:00:00 2001
From: Greg Fodor <gfodor@gmail.com>
Date: Mon, 17 Sep 2018 22:04:00 +0000
Subject: [PATCH] Remove "room" feature

---
 README.md  |  1 -
 src/hub.js | 11 -----------
 2 files changed, 12 deletions(-)

diff --git a/README.md b/README.md
index 4e96bc332..3267b69a1 100644
--- a/README.md
+++ b/README.md
@@ -50,7 +50,6 @@ This will allow the CSP checks to pass that are served up by Reticulum so you ca
 
 ## Query Params
 
-- `room` - Id of the room (an integer) that you want to join
 - `allow_multi` - Allow multiple instances off the app in the same browser session
 - `enable_screen_sharing` - Enable screen sharing
 - `accept_screen_shares` - Display screens shared by other users
diff --git a/src/hub.js b/src/hub.js
index ff21647ad..de0c3d519 100644
--- a/src/hub.js
+++ b/src/hub.js
@@ -552,17 +552,6 @@ const onReady = async () => {
     remountUI({ hubId, hubName });
   };
 
-  if (qs.has("room")) {
-    // If ?room is set, this is `yarn start`, so just use a default environment and query string room.
-    const hubId = qs.get("room") || "default";
-    setRoom(hubId, hubId);
-    if (isBotMode) enterSceneWhenReady();
-    initialEnvironmentEl.setAttribute("gltf-bundle", {
-      src: DEFAULT_ENVIRONMENT_URL
-    });
-    return;
-  }
-
   // Connect to reticulum over phoenix channels to get hub info.
   const hubId = qs.get("hub_id") || document.location.pathname.substring(1).split("/")[0];
   console.log(`Hub ID: ${hubId}`);
-- 
GitLab