mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-22 12:09:21 +00:00
Reopen conversation on page reload
This commit is contained in:
parent
f3466a98e0
commit
022f38f8e3
@ -80,7 +80,7 @@ document.addEventListener("wsClosed", () => {
|
||||
// Close all the current conversations
|
||||
OpenConversations.forEach((v) => v.Close(false))
|
||||
|
||||
OpenConversations = new Map();
|
||||
OpenConversations.clear();
|
||||
})
|
||||
|
||||
|
||||
|
@ -148,9 +148,10 @@ class CallWindow extends CustomEvents {
|
||||
this.rootEl.remove();
|
||||
|
||||
// Leave the call
|
||||
await ws("calls/leave", {
|
||||
convID: this.conv.ID
|
||||
})
|
||||
if(UserWebSocket.IsConnected)
|
||||
await ws("calls/leave", {
|
||||
convID: this.conv.ID
|
||||
})
|
||||
|
||||
if(propagate)
|
||||
this.emitEvent("close");
|
||||
|
Loading…
Reference in New Issue
Block a user