Merge pull request #1826 from deltachat/tgs-mimetype

Recognize .tgs files as stickers
This commit is contained in:
bjoern
2020-08-18 12:48:38 +02:00
committed by GitHub

View File

@@ -1077,6 +1077,7 @@ pub fn guess_msgtype_from_suffix(path: &Path) -> Option<(Viewtype, &str)> {
"png" => (Viewtype::Image, "image/png"),
"spx" => (Viewtype::Audio, "audio/ogg"), // Ogg Speex Profile
"svg" => (Viewtype::Image, "image/svg+xml"),
"tgs" => (Viewtype::Sticker, "application/x-tgsticker"),
"vcard" => (Viewtype::File, "text/vcard"),
"vcf" => (Viewtype::File, "text/vcard"),
"webm" => (Viewtype::Video, "video/webm"),