From bcbfc13f0a5d29cec7625a157a1e428469b14b5c Mon Sep 17 00:00:00 2001 From: Adam Brown Date: Fri, 26 Nov 2021 16:40:59 +0000 Subject: [PATCH 1/2] allowing idle and create offer call states to hang up - fixes the CallActivity looking stuck with no way to exit the call --- .../main/java/im/vector/app/features/call/CallControlsView.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vector/src/main/java/im/vector/app/features/call/CallControlsView.kt b/vector/src/main/java/im/vector/app/features/call/CallControlsView.kt index f0f75370e3..8d30c4d5c5 100644 --- a/vector/src/main/java/im/vector/app/features/call/CallControlsView.kt +++ b/vector/src/main/java/im/vector/app/features/call/CallControlsView.kt @@ -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 } From 258d64a41ec1646a0b5c43f3d902504ed808d868 Mon Sep 17 00:00:00 2001 From: Adam Brown Date: Fri, 26 Nov 2021 16:53:57 +0000 Subject: [PATCH 2/2] adding changelog entry --- changelog.d/4144.bugfix | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog.d/4144.bugfix diff --git a/changelog.d/4144.bugfix b/changelog.d/4144.bugfix new file mode 100644 index 0000000000..1168245ecc --- /dev/null +++ b/changelog.d/4144.bugfix @@ -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) \ No newline at end of file