Update static/js/12-calls.js
This commit is contained in:
parent
35ef91db09
commit
b84214011a
@ -532,7 +532,7 @@ Glow.calls.renderParticipants = () => {
|
|||||||
selfRight.className = "call-participant-status";
|
selfRight.className = "call-participant-status";
|
||||||
selfRight.textContent = state.activeCall
|
selfRight.textContent = state.activeCall
|
||||||
? state.muted
|
? state.muted
|
||||||
? "connected · muted"
|
? "connected · muted"
|
||||||
: "connected"
|
: "connected"
|
||||||
: "idle";
|
: "idle";
|
||||||
|
|
||||||
@ -1030,7 +1030,7 @@ Glow.calls.scheduleReconnect = () => {
|
|||||||
|
|
||||||
clearTimeout(state.reconnectTimer);
|
clearTimeout(state.reconnectTimer);
|
||||||
state.reconnecting = true;
|
state.reconnecting = true;
|
||||||
Glow.calls.setStatusText("Reconnecting…");
|
Glow.calls.setStatusText("Reconnecting...");
|
||||||
Glow.renderCallUi();
|
Glow.renderCallUi();
|
||||||
|
|
||||||
state.reconnectTimer = setTimeout(async () => {
|
state.reconnectTimer = setTimeout(async () => {
|
||||||
@ -1041,7 +1041,7 @@ Glow.calls.scheduleReconnect = () => {
|
|||||||
|
|
||||||
Glow.calls.debug("reconnect attempt", scope);
|
Glow.calls.debug("reconnect attempt", scope);
|
||||||
Glow.calls.resetTransportOnly();
|
Glow.calls.resetTransportOnly();
|
||||||
Glow.calls.setStatusText("Reconnecting…");
|
Glow.calls.setStatusText("Reconnecting...");
|
||||||
state.session = await Glow.calls.fetchGroupCallSession(scope);
|
state.session = await Glow.calls.fetchGroupCallSession(scope);
|
||||||
state.permissions = state.session.permissions || state.permissions;
|
state.permissions = state.session.permissions || state.permissions;
|
||||||
state.scope = state.session.scope || state.scope;
|
state.scope = state.session.scope || state.scope;
|
||||||
@ -1143,15 +1143,15 @@ Glow.renderCallUi = () => {
|
|||||||
if (!busy) {
|
if (!busy) {
|
||||||
statusText = "Idle";
|
statusText = "Idle";
|
||||||
} else if (state.joining) {
|
} else if (state.joining) {
|
||||||
statusText = "Joining call…";
|
statusText = "Joining call...";
|
||||||
} else if (state.reconnecting) {
|
} else if (state.reconnecting) {
|
||||||
statusText = "Reconnecting…";
|
statusText = "Reconnecting...";
|
||||||
} else if (!Glow.calls.wsReady()) {
|
} else if (!Glow.calls.wsReady()) {
|
||||||
statusText = "Connecting…";
|
statusText = "Connecting...";
|
||||||
} else if (peerCount > 0) {
|
} else if (peerCount > 0) {
|
||||||
statusText = `Group call active · ${peerCount} peer(s)`;
|
statusText = `Group call active · ${peerCount} peer(s)`;
|
||||||
} else {
|
} else {
|
||||||
statusText = "Call open · waiting for others";
|
statusText = "Call open · waiting for others";
|
||||||
}
|
}
|
||||||
|
|
||||||
Glow.els.callStatus.textContent = statusText;
|
Glow.els.callStatus.textContent = statusText;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user