From 70e81c28a198700259c0201dc11f973f7fa4757e Mon Sep 17 00:00:00 2001 From: cruizba Date: Mon, 19 Jun 2023 00:14:50 +0200 Subject: [PATCH] openvidu-fault-tolerance: Prevent sessionId assignment if join is hidden --- openvidu-fault-tolerance/src/main/resources/static/app.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/openvidu-fault-tolerance/src/main/resources/static/app.js b/openvidu-fault-tolerance/src/main/resources/static/app.js index ea1160cbf..2efac2e0d 100644 --- a/openvidu-fault-tolerance/src/main/resources/static/app.js +++ b/openvidu-fault-tolerance/src/main/resources/static/app.js @@ -167,7 +167,10 @@ async function connectToSessionWithToken(token) { async function getToken() { - sessionId = $("#sessionId").val(); // Video-call chosen by the user + // Check if #join is hidden + if ($('#join').is(':visible')) { + sessionId = $("#sessionId").val(); // Video-call chosen by the user + } var mustRetry = true; while (mustRetry) {