mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix possible crash in sticker inline results.
This commit is contained in:
parent
d27dd512c5
commit
5838e320ae
1 changed files with 3 additions and 2 deletions
|
@ -482,8 +482,9 @@ void Sticker::setupLottie(not_null<DocumentData*> document) const {
|
||||||
|
|
||||||
void Sticker::prepareThumbnail() const {
|
void Sticker::prepareThumbnail() const {
|
||||||
if (const auto document = getShownDocument()) {
|
if (const auto document = getShownDocument()) {
|
||||||
if (document->sticker()->animated
|
if (!_lottie
|
||||||
&& !_lottie
|
&& document->sticker()
|
||||||
|
&& document->sticker()->animated
|
||||||
&& document->loaded()) {
|
&& document->loaded()) {
|
||||||
setupLottie(document);
|
setupLottie(document);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue