allowing idle and create offer call states to hang up

- fixes the CallActivity looking stuck with no way to exit the call
This commit is contained in:
Adam Brown 2021-11-26 16:40:59 +00:00
parent bdbbdb723e
commit bcbfc13f0a
1 changed files with 3 additions and 1 deletions

View File

@ -97,6 +97,8 @@ class CallControlsView @JvmOverloads constructor(
views.ringingControlDecline.isVisible = true
views.connectedControls.isVisible = false
}
CallState.CreateOffer,
CallState.Idle,
is CallState.Connected,
is CallState.Dialing,
is CallState.Answering -> {
@ -105,7 +107,7 @@ class CallControlsView @JvmOverloads constructor(
views.videoToggleIcon.isVisible = state.isVideoCall
views.moreIcon.isVisible = callState is CallState.Connected && callState.iceConnectionState == MxPeerConnectionState.CONNECTED
}
else -> {
is CallState.Ended -> {
views.ringingControls.isVisible = false
views.connectedControls.isVisible = false
}