mirror of
https://github.com/chatmail/core.git
synced 2026-04-27 10:26:29 +03:00
Merge pull request #1826 from deltachat/tgs-mimetype
Recognize .tgs files as stickers
This commit is contained in:
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user