mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
fix(desktop): queue sends during dictation finalization
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
0da28eff4e
commit
b83f7120df
@@ -67,8 +67,10 @@ export function useMessageComposerDictation({
|
||||
isStarting,
|
||||
isTranscribing,
|
||||
});
|
||||
if (decision === "stop-recording") {
|
||||
if (decision !== "send") {
|
||||
sendAfterTranscriptionRef.current = true;
|
||||
}
|
||||
if (decision === "stop-recording") {
|
||||
stopRecording();
|
||||
}
|
||||
return decision === "send";
|
||||
|
||||
Reference in New Issue
Block a user