mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-25 07:23:03 +00:00
added .wav file workarounds
This commit is contained in:
parent
3ffce527cb
commit
747414a60b
1 changed files with 5 additions and 1 deletions
|
@ -231,7 +231,8 @@ public class EntityAttachment {
|
|||
if ("audio/mid".equals(type))
|
||||
return "audio/midi";
|
||||
|
||||
if ("audio-x/wav".equals(type))
|
||||
if ("audio/x-wav".equals(type) ||
|
||||
"audio-x/wav".equals(type))
|
||||
return "audio/wav";
|
||||
|
||||
// https://www.rfc-editor.org/rfc/rfc3555.txt
|
||||
|
@ -321,6 +322,9 @@ public class EntityAttachment {
|
|||
if ("ogg".equals(extension))
|
||||
return "application/ogg";
|
||||
|
||||
if ("wav".equals(extension))
|
||||
return "audio/wav";
|
||||
|
||||
// Images
|
||||
|
||||
if ("avif".equals(extension))
|
||||
|
|
Loading…
Reference in a new issue