mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Detect animated stickers by mime type.
This commit is contained in:
parent
624ee3bf60
commit
02d5af7d71
2 changed files with 2 additions and 3 deletions
|
@ -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
|
@ -1 +1 @@
|
||||||
Subproject commit 10d63157e4ebdf71d1ea3694bef2ab1f7d7f033c
|
Subproject commit 5879ef0c4f42dad4ed0f7e2da856506d5ae9780c
|
Loading…
Add table
Reference in a new issue