mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-22 20:19: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
|
* @param {Conversation} conv Information about the target conversation
|
||||||
*/
|
*/
|
||||||
static Open(conv) {
|
static Open(conv) {
|
||||||
if(OpenConversations.has(conv.ID))
|
if(OpenConversations.has(conv.ID) && OpenConversations.get(conv.ID).rootEl.isConnected)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
console.info("Open call for conversation " + conv.ID);
|
console.info("Open call for conversation " + conv.ID);
|
||||||
|
@ -369,7 +369,7 @@ class CallWindow extends CustomEvents {
|
|||||||
this.mainPeer.on("close", () => {
|
this.mainPeer.on("close", () => {
|
||||||
console.log("Connection to main peer was closed.")
|
console.log("Connection to main peer was closed.")
|
||||||
if(this.mainPeer)
|
if(this.mainPeer)
|
||||||
this.Close(true);
|
this.Close(false);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user