Show emoji promo only on Premium Emoji toast.

This commit is contained in:
John Preston 2022-08-08 13:25:22 +03:00
parent 68e0d155f9
commit 5c43a541d7

View file

@ -223,7 +223,8 @@ void StickerToast::showWithTitle(const QString &title) {
const auto id = _for->sticker()->set.id; const auto id = _for->sticker()->set.id;
const auto &sets = _for->owner().stickers().sets(); const auto &sets = _for->owner().stickers().sets();
const auto i = sets.find(id); const auto i = sets.find(id);
if (i != end(sets) if (isEmoji
&& (i != end(sets))
&& (i->second->flags & Data::StickersSetFlag::Installed)) { && (i->second->flags & Data::StickersSetFlag::Installed)) {
ShowPremiumPreviewBox( ShowPremiumPreviewBox(
_controller, _controller,