From 4c45ddfde13dde8726ad0a096579173f1ecc2a37 Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 21 Jul 2022 20:40:19 +0300 Subject: [PATCH] Fix slot machine stickers size. --- .../SourceFiles/chat_helpers/stickers_gift_box_pack.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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