mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
fix(desktop): keep dictation send controls active
Co-authored-by: Kenny Lopez <klopez4212@gmail.com> Signed-off-by: John Tennant <jtennant@squareup.com>
This commit is contained in:
co-authored by
Kenny Lopez
parent
30ba73e289
commit
bb0f1fa95a
@@ -44,7 +44,6 @@ export function useMessageComposerDictation({
|
||||
|
||||
return {
|
||||
...dictation,
|
||||
isSendBlocked: isRecording || isStarting || isTranscribing,
|
||||
prepareToSubmit,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -6,4 +6,3 @@ export {
|
||||
} from "./hooks/useMessageComposerDictation";
|
||||
export { useVoiceDictationShortcut } from "./hooks/useVoiceDictationShortcut";
|
||||
export { DictationButton } from "./ui/DictationButton";
|
||||
export { getDictationSendDecision } from "./lib/voiceInput";
|
||||
|
||||
@@ -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,
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user