mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
Distinguish user-initiated stop (mic button) from send/navigation cleanup: - stopRecording(): user stop — keeps the run valid during the 3s grace window so the final commit's transcript is delivered to the composer. - cancelRecording(): send/edit-save/navigation — immediately invalidates the run so late transcripts cannot refill the cleared composer. MessageComposer's stopDictationRef now uses cancelRecording (called on send and edit-save). useComposerDictation's draftKey/disabled effects also use cancelRecording. The user-facing toggleRecording/stopRecording path preserves the final transcript for short recordings.