mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-22 12:09:21 +00:00
Fix issue on page reload
This commit is contained in:
parent
9deba36bcd
commit
a1efa39654
@ -17,7 +17,7 @@ class CallsController {
|
||||
* @param {Conversation} conv Information about the target conversation
|
||||
*/
|
||||
static Open(conv) {
|
||||
if(OpenConversations.has(conv.ID))
|
||||
if(OpenConversations.has(conv.ID) && OpenConversations.get(conv.ID).rootEl.isConnected)
|
||||
return;
|
||||
|
||||
console.info("Open call for conversation " + conv.ID);
|
||||
|
@ -369,7 +369,7 @@ class CallWindow extends CustomEvents {
|
||||
this.mainPeer.on("close", () => {
|
||||
console.log("Connection to main peer was closed.")
|
||||
if(this.mainPeer)
|
||||
this.Close(true);
|
||||
this.Close(false);
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user