From b750908dff82887e025144b85076284e52a0ab35 Mon Sep 17 00:00:00 2001 From: John Preston Date: Wed, 8 Jun 2022 19:29:16 +0400 Subject: [PATCH] Refresh stickers when premium becomes possible. --- Telegram/SourceFiles/chat_helpers/tabbed_selector.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/chat_helpers/tabbed_selector.cpp b/Telegram/SourceFiles/chat_helpers/tabbed_selector.cpp index 4fd46b716..31c78a302 100644 --- a/Telegram/SourceFiles/chat_helpers/tabbed_selector.cpp +++ b/Telegram/SourceFiles/chat_helpers/tabbed_selector.cpp @@ -394,11 +394,12 @@ TabbedSelector::TabbedSelector( _showRequests.fire({}); }, lifetime()); - session().data().stickers().updated( + rpl::merge( + session().premiumPossibleValue() | rpl::to_empty, + session().data().stickers().updated() ) | rpl::start_with_next([=] { refreshStickers(); }, lifetime()); - refreshStickers(); } //setAttribute(Qt::WA_AcceptTouchEvents); setAttribute(Qt::WA_OpaquePaintEvent, false);