From bb0f1fa95a9ad0bc0ef4d41c9de992e3f2f1ddf6 Mon Sep 17 00:00:00 2001 From: John Tennant Date: Thu, 30 Jul 2026 11:50:13 -0400 Subject: [PATCH] fix(desktop): keep dictation send controls active Co-authored-by: Kenny Lopez Signed-off-by: John Tennant --- .../features/dictation/hooks/useMessageComposerDictation.tsx | 1 - desktop/src/features/dictation/index.ts | 1 - desktop/src/features/messages/ui/MessageComposer.tsx | 2 -- 3 files changed, 4 deletions(-) diff --git a/desktop/src/features/dictation/hooks/useMessageComposerDictation.tsx b/desktop/src/features/dictation/hooks/useMessageComposerDictation.tsx index 407d6d9a1..97252bf48 100644 --- a/desktop/src/features/dictation/hooks/useMessageComposerDictation.tsx +++ b/desktop/src/features/dictation/hooks/useMessageComposerDictation.tsx @@ -44,7 +44,6 @@ export function useMessageComposerDictation({ return { ...dictation, - isSendBlocked: isRecording || isStarting || isTranscribing, prepareToSubmit, }; } diff --git a/desktop/src/features/dictation/index.ts b/desktop/src/features/dictation/index.ts index 502b37e6b..12964f17a 100644 --- a/desktop/src/features/dictation/index.ts +++ b/desktop/src/features/dictation/index.ts @@ -6,4 +6,3 @@ export { } from "./hooks/useMessageComposerDictation"; export { useVoiceDictationShortcut } from "./hooks/useVoiceDictationShortcut"; export { DictationButton } from "./ui/DictationButton"; -export { getDictationSendDecision } from "./lib/voiceInput"; diff --git a/desktop/src/features/messages/ui/MessageComposer.tsx b/desktop/src/features/messages/ui/MessageComposer.tsx index ffcb35681..ecee420ab 100644 --- a/desktop/src/features/messages/ui/MessageComposer.tsx +++ b/desktop/src/features/messages/ui/MessageComposer.tsx @@ -838,13 +838,11 @@ function MessageComposerImpl({ disabled || media.isUploading || mentionSendFlow.isPreparingMentionSend || - dictation.isSendBlocked || (isContentEmpty && media.pendingImeta.length === 0), [ disabled, media.isUploading, mentionSendFlow.isPreparingMentionSend, - dictation.isSendBlocked, isContentEmpty, media.pendingImeta.length, ],