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(); orientListener();
await openSignaling(room); await openSignaling(room);
S.room = room;
S.connecting = false; S.connecting = false;
renderAll();
} }
async function fetchIce() { async function fetchIce() {
@@ -166,6 +168,7 @@ function handleSignal(msg) {
switch (msg.type) { switch (msg.type) {
case 'hello': { case 'hello': {
S.myId = msg.id; S.myId = msg.id;
S.room = msg.room;
for (const p of msg.peers) { for (const p of msg.peers) {
S.peers.set(p.id, makePeerRecord(p)); S.peers.set(p.id, makePeerRecord(p));
// deterministic initiator: lower id offers (no glare storm on join) // deterministic initiator: lower id offers (no glare storm on join)
+1 -1
View File
@@ -97,6 +97,6 @@
<div id="toasts"></div> <div id="toasts"></div>
<script src="app.js?v=7"></script> <script src="app.js?v=8"></script>
</body> </body>
</html> </html>