mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-01-28 18:09:30 +01:00
Merge pull request #4567 from vector-im/feature/adm/stuck-voip
Always showing hang up button in VOIP calls
This commit is contained in:
commit
df23cc4e09
1
changelog.d/4144.bugfix
Normal file
1
changelog.d/4144.bugfix
Normal file
@ -0,0 +1 @@
|
||||
Allowing users to hang up VOIP calls during the initialisation phase (avoids getting stuck in the call screen if something goes wrong)
|
@ -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…
x
Reference in New Issue
Block a user