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 @@
- +