mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-03 16:05:57 +00:00
Detect animated stickers by mime type.
This commit is contained in:
@@ -580,8 +580,7 @@ void DocumentData::setattributes(
|
|||||||
|
|
||||||
void DocumentData::validateLottieSticker() {
|
void DocumentData::validateLottieSticker() {
|
||||||
if (type == FileDocument
|
if (type == FileDocument
|
||||||
&& _mimeString == qstr("application/x-tgsticker")
|
&& _mimeString == qstr("application/x-tgsticker")) {
|
||||||
&& hasThumbnail()) {
|
|
||||||
type = StickerDocument;
|
type = StickerDocument;
|
||||||
_additional = std::make_unique<StickerData>();
|
_additional = std::make_unique<StickerData>();
|
||||||
sticker()->animated = true;
|
sticker()->animated = true;
|
||||||
|
2
Telegram/ThirdParty/tgcalls
vendored
2
Telegram/ThirdParty/tgcalls
vendored
Submodule Telegram/ThirdParty/tgcalls updated: 10d63157e4...5879ef0c4f
Reference in New Issue
Block a user