From 02d5af7d713727710f6a48d257f7353267ff79b1 Mon Sep 17 00:00:00 2001 From: John Preston Date: Mon, 30 Nov 2020 20:43:37 +0300 Subject: [PATCH] Detect animated stickers by mime type. --- Telegram/SourceFiles/data/data_document.cpp | 3 +-- Telegram/ThirdParty/tgcalls | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Telegram/SourceFiles/data/data_document.cpp b/Telegram/SourceFiles/data/data_document.cpp index cd236d62f..b7c8d16ca 100644 --- a/Telegram/SourceFiles/data/data_document.cpp +++ b/Telegram/SourceFiles/data/data_document.cpp @@ -580,8 +580,7 @@ void DocumentData::setattributes( void DocumentData::validateLottieSticker() { if (type == FileDocument - && _mimeString == qstr("application/x-tgsticker") - && hasThumbnail()) { + && _mimeString == qstr("application/x-tgsticker")) { type = StickerDocument; _additional = std::make_unique(); sticker()->animated = true; diff --git a/Telegram/ThirdParty/tgcalls b/Telegram/ThirdParty/tgcalls index 10d63157e..5879ef0c4 160000 --- a/Telegram/ThirdParty/tgcalls +++ b/Telegram/ThirdParty/tgcalls @@ -1 +1 @@ -Subproject commit 10d63157e4ebdf71d1ea3694bef2ab1f7d7f033c +Subproject commit 5879ef0c4f42dad4ed0f7e2da856506d5ae9780c