From d85f162bffabca02741e7bb1627fd7c6ce4d7032 Mon Sep 17 00:00:00 2001 From: John Preston Date: Mon, 9 Sep 2019 23:58:30 +0300 Subject: [PATCH] Fix saving cloud themes from media viewer. --- Telegram/SourceFiles/core/mime_type.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/core/mime_type.cpp b/Telegram/SourceFiles/core/mime_type.cpp index 985416465..24e434ca4 100644 --- a/Telegram/SourceFiles/core/mime_type.cpp +++ b/Telegram/SourceFiles/core/mime_type.cpp @@ -55,7 +55,8 @@ MimeType MimeTypeForName(const QString &mime) { return MimeType(MimeType::Known::WebP); } else if (mime == qstr("application/x-tgsticker")) { return MimeType(MimeType::Known::Tgs); - } else if (mime == qstr("application/x-tdesktop-theme")) { + } else if (mime == qstr("application/x-tdesktop-theme") + || mime == qstr("application/x-tgtheme-tdesktop")) { return MimeType(MimeType::Known::TDesktopTheme); } else if (mime == qstr("application/x-tdesktop-palette")) { return MimeType(MimeType::Known::TDesktopPalette);