Fix slot machine stickers size.

This commit is contained in:
John Preston 2022-07-21 20:40:19 +03:00
parent 18a6f7d700
commit 4c45ddfde1

View file

@ -97,9 +97,9 @@ void GiftBoxPack::applySet(const MTPDmessages_stickerSet &data) {
} }
bool GiftBoxPack::isGiftSticker(not_null<DocumentData*> document) const { bool GiftBoxPack::isGiftSticker(not_null<DocumentData*> document) const {
return document->sticker() return _setId
? (document->sticker()->set.id == _setId) && document->sticker()
: false; && (document->sticker()->set.id == _setId);
} }
} // namespace Stickers } // namespace Stickers