Fixed voice notes to download with mp3 extension
This commit is contained in:
parent
ea642d99cd
commit
5daa820e4e
1 changed files with 2 additions and 0 deletions
|
@ -982,6 +982,8 @@ export const getFileExtension = (
|
||||||
switch (attachment.contentType) {
|
switch (attachment.contentType) {
|
||||||
case 'video/quicktime':
|
case 'video/quicktime':
|
||||||
return 'mov';
|
return 'mov';
|
||||||
|
case 'audio/mpeg':
|
||||||
|
return 'mp3';
|
||||||
default:
|
default:
|
||||||
return attachment.contentType.split('/')[1];
|
return attachment.contentType.split('/')[1];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue