Skip to content

Commit 52645a8

Browse files
committed
decrease mic trigger time
1 parent 027cee3 commit 52645a8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎src/components/message-pane/MessagePane.tsx‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -833,9 +833,10 @@ const MicButton = (props: { onBlob?: (blob: Blob) => void }) => {
833833
console.error(e);
834834
toast("Unable to record audio.");
835835
});
836+
if (!blob) return;
836837

837838
const durationMs = recordEndAt - recordStartAt;
838-
if (durationMs < 800) return;
839+
if (durationMs < 400) return;
839840
if (cancelRecording()) return;
840841

841842
props.onBlob?.(blob);

0 commit comments

Comments
 (0)