Skip to content

Commit

Permalink
Merge pull request #4567 from vector-im/feature/adm/stuck-voip
Browse files Browse the repository at this point in the history
Always showing hang up button in VOIP calls
  • Loading branch information
bmarty authored Nov 29, 2021
2 parents 7beec1c + 258d64a commit df23cc4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/4144.bugfix
Original file line number Diff line number Diff line change
@@ -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)
Original file line number Diff line number Diff line change
Expand Up @@ -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 -> {
Expand All @@ -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
}
Expand Down

0 comments on commit df23cc4

Please sign in to comment.