fix(channel): assign S.room when joining voice room
Build and Publish / Metadata (push) Successful in 1s
Build and Publish / BuildAndDeployAmd64 (push) Successful in 33s

This commit is contained in:
mats committed 2026-09-22 09:54:28 +02:00
1 parent 7b29cf7d10
commit d3fd800ea7
2 files changed
+4 -1

No files matched your search

+3
View File
@@ -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)