mirror of
https://github.com/chatmail/core.git
synced 2026-05-09 01:46:30 +03:00
fix: Treat "tgs" as Viewtype::File
`Viewtype::Sticker` has special meaning: the file should be an image having fully transparent pixels. But "tgs" (Telegram animated sticker) is a compressed JSON and isn't recognized by Core as image.
This commit is contained in:
@@ -1592,7 +1592,7 @@ pub(crate) fn guess_msgtype_from_path_suffix(path: &Path) -> Option<(Viewtype, &
|
|||||||
"rtf" => (Viewtype::File, "application/rtf"),
|
"rtf" => (Viewtype::File, "application/rtf"),
|
||||||
"spx" => (Viewtype::File, "audio/ogg"), // Ogg Speex Profile
|
"spx" => (Viewtype::File, "audio/ogg"), // Ogg Speex Profile
|
||||||
"svg" => (Viewtype::File, "image/svg+xml"),
|
"svg" => (Viewtype::File, "image/svg+xml"),
|
||||||
"tgs" => (Viewtype::Sticker, "application/x-tgsticker"),
|
"tgs" => (Viewtype::File, "application/x-tgsticker"),
|
||||||
"tiff" => (Viewtype::File, "image/tiff"),
|
"tiff" => (Viewtype::File, "image/tiff"),
|
||||||
"tif" => (Viewtype::File, "image/tiff"),
|
"tif" => (Viewtype::File, "image/tiff"),
|
||||||
"ttf" => (Viewtype::File, "font/ttf"),
|
"ttf" => (Viewtype::File, "font/ttf"),
|
||||||
|
|||||||
Reference in New Issue
Block a user