Generate good video thumbnail for Webm stickers.

This commit is contained in:
John Preston 2022-01-20 18:14:10 +03:00
parent 079772a399
commit 9b59ef00af

View file

@ -409,7 +409,7 @@ void DocumentMedia::GenerateGoodThumbnail(
? FileType::WallPaper
: document->isTheme()
? FileType::Theme
: document->sticker()
: (document->sticker() && document->sticker()->isLottie())
? FileType::AnimatedSticker
: FileType::Video;
auto location = document->location().isEmpty()