Update static/js/12-calls.js

This commit is contained in:
dev 2026-11-02 06:25:15 +00:00
parent 35ef91db09
commit b84214011a

View File

@ -532,7 +532,7 @@ Glow.calls.renderParticipants = () => {
selfRight.className = "call-participant-status";
selfRight.textContent = state.activeCall
? state.muted
? "connected · muted"
? "connected · muted"
: "connected"
: "idle";
@ -1030,7 +1030,7 @@ Glow.calls.scheduleReconnect = () => {
clearTimeout(state.reconnectTimer);
state.reconnecting = true;
Glow.calls.setStatusText("Reconnecting…");
Glow.calls.setStatusText("Reconnecting...");
Glow.renderCallUi();
state.reconnectTimer = setTimeout(async () => {
@ -1041,7 +1041,7 @@ Glow.calls.scheduleReconnect = () => {
Glow.calls.debug("reconnect attempt", scope);
Glow.calls.resetTransportOnly();
Glow.calls.setStatusText("Reconnecting…");
Glow.calls.setStatusText("Reconnecting...");
state.session = await Glow.calls.fetchGroupCallSession(scope);
state.permissions = state.session.permissions || state.permissions;
state.scope = state.session.scope || state.scope;
@ -1143,15 +1143,15 @@ Glow.renderCallUi = () => {
if (!busy) {
statusText = "Idle";
} else if (state.joining) {
statusText = "Joining call…";
statusText = "Joining call...";
} else if (state.reconnecting) {
statusText = "Reconnecting…";
statusText = "Reconnecting...";
} else if (!Glow.calls.wsReady()) {
statusText = "Connecting…";
statusText = "Connecting...";
} else if (peerCount > 0) {
statusText = `Group call active · ${peerCount} peer(s)`;
statusText = `Group call active · ${peerCount} peer(s)`;
} else {
statusText = "Call open · waiting for others";
statusText = "Call open · waiting for others";
}
Glow.els.callStatus.textContent = statusText;