From b7e298cc48c787a13085d8c95af2fabacca4cb0b Mon Sep 17 00:00:00 2001 From: Marissa Le Coz <129999395+marissa-signal@users.noreply.github.com> Date: Thu, 9 Jan 2025 16:50:41 -0500 Subject: [PATCH] Fix internal crash when opening call link calls --- Signal/Calls/UserInterface/CallControls.swift | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Signal/Calls/UserInterface/CallControls.swift b/Signal/Calls/UserInterface/CallControls.swift index e16a8de0b0..d0f66ca6d9 100644 --- a/Signal/Calls/UserInterface/CallControls.swift +++ b/Signal/Calls/UserInterface/CallControls.swift @@ -795,8 +795,9 @@ extension CallControlsViewModel { public var ringButtonAccessibilityLabel: String? { switch call.mode { - case .individual: - owsFailDebug("Can't control ringing for an individual call.") + case .individual, .callLink: + // These call types do not use the ring button. + break case .groupThread(let call): switch call.groupCallRingState { case .shouldRing: @@ -810,10 +811,9 @@ extension CallControlsViewModel { comment: "Accessibility label for turning on call ringing" ) default: - owsFailBeta("Ring button should not have been available to press!") + // Ring button shouldn't be available. + break } - case .callLink: - owsFailDebug("Can't ring Call Link call.") } return nil }