mirror of
https://github.com/chatmail/core.git
synced 2026-04-26 01:46:34 +03:00
change SVG Viewtype to Image, again
This commit is contained in:
@@ -1232,7 +1232,7 @@ pub fn guess_msgtype_from_suffix(path: &Path) -> Option<(Viewtype, &str)> {
|
||||
"rar" => (Viewtype::File, "application/vnd.rar"),
|
||||
"rtf" => (Viewtype::File, "application/rtf"),
|
||||
"spx" => (Viewtype::File, "audio/ogg"), // Ogg Speex Profile
|
||||
"svg" => (Viewtype::File, "image/svg+xml"),
|
||||
"svg" => (Viewtype::Image, "image/svg+xml"),
|
||||
"tgs" => (Viewtype::Sticker, "application/x-tgsticker"),
|
||||
"tiff" => (Viewtype::File, "image/tiff"),
|
||||
"tif" => (Viewtype::File, "image/tiff"),
|
||||
|
||||
@@ -1537,7 +1537,6 @@ fn get_mime_type(mail: &mailparse::ParsedMail<'_>) -> Result<(Mime, Viewtype)> {
|
||||
}
|
||||
mime::IMAGE => match mimetype.subtype() {
|
||||
mime::GIF => Viewtype::Gif,
|
||||
mime::SVG => Viewtype::File,
|
||||
_ => Viewtype::Image,
|
||||
},
|
||||
mime::AUDIO => Viewtype::Audio,
|
||||
|
||||
Reference in New Issue
Block a user