[call-me] - improve leave logic

This commit is contained in:
Miroslav Pejic
2025-08-21 12:56:47 +02:00
parent 6ae67bfa13
commit 2eb51c7ab7
2 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -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
+10 -10
View File
@@ -233,16 +233,6 @@
>
<i class="fas fa-microphone"></i>
</button>
<!-- Toggle user sidebar button -->
<button
id="sidebarBtn"
class="btn btn-custom btn-primary btn-m"
data-toggle="tooltip"
data-placement="top"
title="Toggle users"
>
<i class="fas fa-users"></i>
</button>
<!-- Button to hang up the call -->
<button
id="hangUpBtn"
@@ -253,6 +243,16 @@
>
<i class="fas fa-phone-slash"></i>
</button>
<!-- Toggle user sidebar button -->
<button
id="sidebarBtn"
class="btn btn-custom btn-primary btn-m"
data-toggle="tooltip"
data-placement="top"
title="Toggle users"
>
<i class="fas fa-users"></i>
</button>
</div>
</div>
</div>