Fixed voice notes to download with mp3 extension

This commit is contained in:
Alvaro
2023-02-21 08:24:19 -07:00
committed by GitHub
parent ea642d99cd
commit 5daa820e4e

View File

@@ -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];
}