Skip to content

Commit

Permalink
Fix internal crash when opening call link calls
Browse files Browse the repository at this point in the history
  • Loading branch information
marissa-signal authored Jan 9, 2025
1 parent 6bdf97a commit b7e298c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Signal/Calls/UserInterface/CallControls.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
}
Expand Down

0 comments on commit b7e298c

Please sign in to comment.