[call-me] - improve leave logic
This commit is contained in:
+1
-1
@@ -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
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user