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 77c7c95 commit fa8697dCopy full SHA for fa8697d
package/src/components/MessageInput/components/AttachmentPreview/AudioAttachmentUploadPreview.tsx
@@ -41,7 +41,7 @@ export const AudioAttachmentUploadPreview = ({
41
const finalAttachment = useMemo(
42
() => ({
43
...attachment,
44
- asset_url: (attachment.localMetadata.file as FileReference).uri,
+ asset_url: attachment.asset_url ?? (attachment.localMetadata.file as FileReference).uri,
45
id: attachment.localMetadata.id,
46
...audioAttachmentConfig,
47
}),
0 commit comments