We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bcd96b commit 9e4a6ffCopy full SHA for 9e4a6ff
package/src/components/MessageInput/hooks/useAudioPreviewManager.tsx
@@ -22,8 +22,8 @@ export const useAudioPreviewManager = (files: LocalAttachment[]) => {
22
23
const config: AudioConfig = {
24
duration: attachment.duration ?? existingConfig?.duration ?? 0,
25
- paused: true,
26
- progress: 0,
+ paused: existingConfig?.paused ?? true,
+ progress: existingConfig?.progress ?? 0,
27
};
28
29
return [id, config];
0 commit comments