diff --git a/Telegram/SourceFiles/chat_helpers/stickers_gift_box_pack.cpp b/Telegram/SourceFiles/chat_helpers/stickers_gift_box_pack.cpp index 75fdcc8699..0436368083 100644 --- a/Telegram/SourceFiles/chat_helpers/stickers_gift_box_pack.cpp +++ b/Telegram/SourceFiles/chat_helpers/stickers_gift_box_pack.cpp @@ -97,9 +97,9 @@ void GiftBoxPack::applySet(const MTPDmessages_stickerSet &data) { } bool GiftBoxPack::isGiftSticker(not_null document) const { - return document->sticker() - ? (document->sticker()->set.id == _setId) - : false; + return _setId + && document->sticker() + && (document->sticker()->set.id == _setId); } } // namespace Stickers