mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-03-19 09:58:52 +00:00
Fix possible crash in sticker inline results.
This commit is contained in:
parent
d27dd512c5
commit
5838e320ae
@ -482,8 +482,9 @@ void Sticker::setupLottie(not_null<DocumentData*> document) const {
|
||||
|
||||
void Sticker::prepareThumbnail() const {
|
||||
if (const auto document = getShownDocument()) {
|
||||
if (document->sticker()->animated
|
||||
&& !_lottie
|
||||
if (!_lottie
|
||||
&& document->sticker()
|
||||
&& document->sticker()->animated
|
||||
&& document->loaded()) {
|
||||
setupLottie(document);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user