diff --git a/ts/components/conversation/right-panel/overlay/message-info/components/AttachmentInfo.tsx b/ts/components/conversation/right-panel/overlay/message-info/components/AttachmentInfo.tsx index a87bcca93..2eee16596 100644 --- a/ts/components/conversation/right-panel/overlay/message-info/components/AttachmentInfo.tsx +++ b/ts/components/conversation/right-panel/overlay/message-info/components/AttachmentInfo.tsx @@ -44,7 +44,7 @@ export const AttachmentInfo = (props: Props) => { /> diff --git a/ts/components/conversation/right-panel/overlay/message-info/components/MessageInfo.tsx b/ts/components/conversation/right-panel/overlay/message-info/components/MessageInfo.tsx index bc371f229..a0bb84fad 100644 --- a/ts/components/conversation/right-panel/overlay/message-info/components/MessageInfo.tsx +++ b/ts/components/conversation/right-panel/overlay/message-info/components/MessageInfo.tsx @@ -110,7 +110,7 @@ const DebugMessageInfo = ({ messageId }: { messageId: string }) => { {expirationTimestamp ? ( ) : null} diff --git a/ts/types/attachments/VisualAttachment.ts b/ts/types/attachments/VisualAttachment.ts index bf06f4434..1c620468f 100644 --- a/ts/types/attachments/VisualAttachment.ts +++ b/ts/types/attachments/VisualAttachment.ts @@ -120,7 +120,7 @@ export async function getVideoDuration({ const video = document.createElement('video'); video.addEventListener('loadedmetadata', () => { - const duration = formatTimeDuration(video.duration / 1000, { unit: 'second' }); + const duration = formatTimeDuration(video.duration * 1000, { unit: 'second' }); resolve(duration); }); @@ -153,7 +153,7 @@ export async function getAudioDuration({ const audio = document.createElement('audio'); audio.addEventListener('loadedmetadata', () => { - const duration = formatTimeDuration(audio.duration / 1000, { unit: 'second' }); + const duration = formatTimeDuration(audio.duration * 1000, { unit: 'second' }); resolve(duration); });