From 5daa820e4e9436fdb3a0da1bb33b97ef15ba4032 Mon Sep 17 00:00:00 2001 From: Alvaro <110414366+alvaro-signal@users.noreply.github.com> Date: Tue, 21 Feb 2023 08:24:19 -0700 Subject: [PATCH] Fixed voice notes to download with mp3 extension --- ts/types/Attachment.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ts/types/Attachment.ts b/ts/types/Attachment.ts index a5ea928fa..d3c0d5c08 100644 --- a/ts/types/Attachment.ts +++ b/ts/types/Attachment.ts @@ -982,6 +982,8 @@ export const getFileExtension = ( switch (attachment.contentType) { case 'video/quicktime': return 'mov'; + case 'audio/mpeg': + return 'mp3'; default: return attachment.contentType.split('/')[1]; }