From 2eb51c7ab7257d02a866b0273ce79c4e17174e1a Mon Sep 17 00:00:00 2001 From: Miroslav Pejic Date: Thu, 21 Aug 2025 12:56:47 +0200 Subject: [PATCH] [call-me] - improve leave logic --- public/client.js | 2 +- public/index.html | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/public/client.js b/public/client.js index 74b78ac..ff8f5c3 100755 --- a/public/client.js +++ b/public/client.js @@ -696,7 +696,7 @@ function checkVideoAudioStatus() { // Handle hang-up button click function handleHangUpClick() { sendMsg({ type: 'leave', name: socket.recipient }); - handleLeave(); + thisConnection ? handleLeave(false) : handleLeave(true); } // Handle leaving the call diff --git a/public/index.html b/public/index.html index 682cd81..c9d59ba 100755 --- a/public/index.html +++ b/public/index.html @@ -233,16 +233,6 @@ > - - + +