From bea56c9e6f16c769befa39a41168222bc08caed5 Mon Sep 17 00:00:00 2001 From: h2entwicklung Date: Fri, 6 Jan 2023 10:45:13 +0100 Subject: [PATCH] * only conference is now working when click the cross two times --- assets/js/onlyConference.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/assets/js/onlyConference.js b/assets/js/onlyConference.js index 91451fd7b..363501101 100644 --- a/assets/js/onlyConference.js +++ b/assets/js/onlyConference.js @@ -30,6 +30,7 @@ api.addListener('videoConferenceJoined', function (e) { api.addListener('videoConferenceLeft', function (e) { leaveMeeting(); initStarSend(); + api = null; }); if (setTileview === 1) { @@ -85,7 +86,9 @@ function checkClose() { leaveMeeting(); initStarSend(); } - api.executeCommand('hangup'); + if (api){ + api.executeCommand('hangup'); + } leaveMeeting(); }