From b7e52119bca57068d9d962003b954d244ecba42c Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 2 May 2024 16:35:22 +0400 Subject: [PATCH] Add .jxl to the list of image extensions. --- Telegram/SourceFiles/core/mime_type.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/core/mime_type.cpp b/Telegram/SourceFiles/core/mime_type.cpp index 7467145cf..17a81e4dd 100644 --- a/Telegram/SourceFiles/core/mime_type.cpp +++ b/Telegram/SourceFiles/core/mime_type.cpp @@ -244,8 +244,8 @@ QString FileExtension(const QString &filepath) { NameType DetectNameType(const QString &filepath) { static const auto kImage = SplitExtensions(u"\ -afdesign ai avif bmp dng gif heic icns ico jfif jpeg jpg jpg-large nef png \ -png-large psd raw sketch svg tga tif tiff webp"_q); +afdesign ai avif bmp dng gif heic icns ico jfif jpeg jpg jpg-large jxl nef \ +png png-large psd raw sketch svg tga tif tiff webp"_q); static const auto kVideo = SplitExtensions(u"\ 3g2 3gp 3gpp aep avi flv h264 m4s m4v mkv mov mp4 mpeg mpg ogv srt tgs tgv \ vob webm wmv"_q);