mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-27 03:49:04 +03:00
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:
parent
bdbbdb723e
commit
bcbfc13f0a
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue