2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Detect animated stickers by mime type.

This commit is contained in:
John Preston
2020-11-30 20:43:37 +03:00
parent 624ee3bf60
commit 02d5af7d71
2 changed files with 2 additions and 3 deletions

View File

@@ -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<StickerData>();
sticker()->animated = true;