From f2afc8f6bf579e696a028280b94363cfa3d8d93e Mon Sep 17 00:00:00 2001 From: Igor Solomennikov Date: Thu, 6 Nov 2025 21:36:44 -0800 Subject: [PATCH] Fix Send button visible on iOS 26 when recording a voice note. --- .../ConversationInputToolbar.swift | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/Signal/ConversationView/ConversationInputToolbar.swift b/Signal/ConversationView/ConversationInputToolbar.swift index 5a474ff39f..0e107320e1 100644 --- a/Signal/ConversationView/ConversationInputToolbar.swift +++ b/Signal/ConversationView/ConversationInputToolbar.swift @@ -945,8 +945,19 @@ public class ConversationInputToolbar: UIView, ConversationInputPanelWithContent // iOS 26+: show / hide Send button. if iOS26Layout { - let hideSendButton = rightEdgeControlsState == .default - let disableSendButton = rightEdgeControlsState == .disabledSendButton + let hideSendButton: Bool + var disableSendButton = false + switch rightEdgeControlsState { + case .default: + hideSendButton = true + case .sendButton: + hideSendButton = false + case .disabledSendButton: + hideSendButton = false + disableSendButton = true + case .hiddenSendButton: + hideSendButton = true + } if setSendButtonHidden(hideSendButton, disabled: disableSendButton, usingAnimator: animator) { hasLayoutChanged = true }