Detect image/avif as an image

This commit is contained in:
Pavel Djundik 2020-08-23 12:51:52 +03:00
parent 7bf4f68ff8
commit c89dcca449
2 changed files with 2 additions and 0 deletions

View File

@ -209,6 +209,7 @@ function parse(msg, chan, preview, res, client) {
case "image/jpg":
case "image/jpeg":
case "image/webp":
case "image/avif":
if (!Helper.config.prefetchStorage && Helper.config.disableMediaPreview) {
return removePreview(msg, preview);
}

View File

@ -24,6 +24,7 @@ const inlineContentDispositionTypes = [
"image/jpeg",
"image/png",
"image/webp",
"image/avif",
"text/plain",
"video/mp4",
"video/ogg",