1
0
mirror of https://github.com/pierre42100/ComunicWeb synced 2025-07-15 23:48:08 +00:00

Add support for call closed event

This commit is contained in:
2020-04-13 08:46:39 +02:00
parent dbf30acd19
commit cff2cdada2
2 changed files with 10 additions and 0 deletions
assets/js
common
components

@ -111,6 +111,12 @@ document.addEventListener("callPeerReady", (e) => {
OpenCalls.get(detail.callID).PeerReady(detail.peerID)
})
document.addEventListener("callClosed", e => {
const callID = e.detail;
if(OpenCalls.has(callID))
OpenCalls.get(callID).Close(false);
});
document.addEventListener("wsClosed", () => {
// Close all the current conversations