From b8e98c0b8117eba2a4edc1fd58de26b79cff2f70 Mon Sep 17 00:00:00 2001 From: Hocuri Date: Fri, 16 Oct 2020 18:42:21 +0200 Subject: [PATCH] Also add missing suffix (#1973) --- src/message.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/message.rs b/src/message.rs index 6b9149858..7dee79f74 100644 --- a/src/message.rs +++ b/src/message.rs @@ -1196,6 +1196,7 @@ pub fn guess_msgtype_from_suffix(path: &Path) -> Option<(Viewtype, &str)> { "jpg" => (Viewtype::Image, "image/jpeg"), "json" => (Viewtype::File, "application/json"), "mov" => (Viewtype::Video, "video/quicktime"), + "m4a" => (Viewtype::Audio, "audio/m4a"), "mp3" => (Viewtype::Audio, "audio/mpeg"), "mp4" => (Viewtype::Video, "video/mp4"), "odp" => (