Reopen conversation on page reload

This commit is contained in:
Pierre HUBERT 2020-04-10 16:15:52 +02:00
parent f3466a98e0
commit 022f38f8e3
2 changed files with 5 additions and 4 deletions

View File

@ -80,7 +80,7 @@ document.addEventListener("wsClosed", () => {
// Close all the current conversations // Close all the current conversations
OpenConversations.forEach((v) => v.Close(false)) OpenConversations.forEach((v) => v.Close(false))
OpenConversations = new Map(); OpenConversations.clear();
}) })

View File

@ -148,9 +148,10 @@ class CallWindow extends CustomEvents {
this.rootEl.remove(); this.rootEl.remove();
// Leave the call // Leave the call
await ws("calls/leave", { if(UserWebSocket.IsConnected)
convID: this.conv.ID await ws("calls/leave", {
}) convID: this.conv.ID
})
if(propagate) if(propagate)
this.emitEvent("close"); this.emitEvent("close");