mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Show emoji promo only on Premium Emoji toast.
This commit is contained in:
parent
68e0d155f9
commit
5c43a541d7
1 changed files with 2 additions and 1 deletions
|
@ -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,
|
||||||
|
|
Loading…
Add table
Reference in a new issue