diff --git a/src/hub.js b/src/hub.js index a6efe81c6b0912818ac637c45c410b9acc801506..dc670529c19e2471070f173d68bd187c4ea26bc4 100644 --- a/src/hub.js +++ b/src/hub.js @@ -381,15 +381,15 @@ const onReady = async () => { environmentRoot.appendChild(initialEnvironmentEl); const setRoom = (janusRoomId, hubName) => { - if (isBotMode) { + if (!isBotMode) { + remountUI({ janusRoomId, hubName }); + } else { const enterSceneImmediately = () => enterScene(new MediaStream(), false, janusRoomId); if (scene.hasLoaded) { enterSceneImmediately(); } else { scene.addEventListener("loaded", enterSceneImmediately); } - } else { - remountUI({ janusRoomId, hubName }); } };