mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-03-01 20:11:07 +00:00
Fix possible crash in empty sticker set.
This commit is contained in:
parent
1a8cc87e60
commit
e91eecf34f
@ -2186,7 +2186,7 @@ void StickersBox::Inner::rebuildAppendSet(
|
||||
raw->yadd = {};
|
||||
auto oldStickerMedia = std::move(raw->stickerMedia);
|
||||
auto oldThumbnailMedia = std::move(raw->thumbnailMedia);
|
||||
raw->stickerMedia = sticker->activeMediaView();
|
||||
raw->stickerMedia = sticker ? sticker->activeMediaView() : nullptr;
|
||||
raw->thumbnailMedia = set->activeThumbnailView();
|
||||
if (raw->thumbnailMedia != oldThumbnailMedia
|
||||
|| (!raw->thumbnailMedia && raw->stickerMedia != oldStickerMedia)) {
|
||||
|
Loading…
Reference in New Issue
Block a user