Skip to content

Commit 9e4a6ff

Browse files
committed
fix: paused bug when audio is uploadesd
1 parent 8bcd96b commit 9e4a6ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

package/src/components/MessageInput/hooks/useAudioPreviewManager.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ export const useAudioPreviewManager = (files: LocalAttachment[]) => {
2222

2323
const config: AudioConfig = {
2424
duration: attachment.duration ?? existingConfig?.duration ?? 0,
25-
paused: true,
26-
progress: 0,
25+
paused: existingConfig?.paused ?? true,
26+
progress: existingConfig?.progress ?? 0,
2727
};
2828

2929
return [id, config];

0 commit comments

Comments
 (0)