mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-02 15:17:03 +02:00
added .wav file workarounds
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user