From d3fd800ea710ec409151fee1737324ac80712d60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mats=20T=C3=B6rnberg?= Date: Tue, 22 Sep 2026 09:54:28 +0200 Subject: [PATCH] fix(channel): assign S.room when joining voice room --- public/app.js | 3 +++ public/index.html | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/public/app.js b/public/app.js index ee2aaed..550dee2 100644 --- a/public/app.js +++ b/public/app.js @@ -101,7 +101,9 @@ async function joinVoice(room) { orientListener(); await openSignaling(room); + S.room = room; S.connecting = false; + renderAll(); } async function fetchIce() { @@ -166,6 +168,7 @@ function handleSignal(msg) { switch (msg.type) { case 'hello': { S.myId = msg.id; + S.room = msg.room; for (const p of msg.peers) { S.peers.set(p.id, makePeerRecord(p)); // deterministic initiator: lower id offers (no glare storm on join) diff --git a/public/index.html b/public/index.html index 08c24b9..2ff5fa2 100644 --- a/public/index.html +++ b/public/index.html @@ -97,6 +97,6 @@
- +