@@ -76,9 +76,10 @@ using Order = std::vector<QString>;
7676 u" quick_replies" _q,
7777 u" business_hours" _q,
7878 u" business_location" _q,
79- u" business_bots" _q,
80- u" business_intro" _q,
8179 u" business_links" _q,
80+ u" business_intro" _q,
81+ u" business_bots" _q,
82+ u" folder_tags" _q,
8283 };
8384}
8485
@@ -136,7 +137,6 @@ using Order = std::vector<QString>;
136137 tr::lng_business_subtitle_chatbots (),
137138 tr::lng_business_about_chatbots (),
138139 PremiumFeature::BusinessBots,
139- true
140140 },
141141 },
142142 {
@@ -146,7 +146,6 @@ using Order = std::vector<QString>;
146146 tr::lng_business_subtitle_chat_intro (),
147147 tr::lng_business_about_chat_intro (),
148148 PremiumFeature::ChatIntro,
149- true
150149 },
151150 },
152151 {
@@ -156,7 +155,16 @@ using Order = std::vector<QString>;
156155 tr::lng_business_subtitle_chat_links (),
157156 tr::lng_business_about_chat_links (),
158157 PremiumFeature::ChatLinks,
159- true
158+ },
159+ },
160+ {
161+ u" folder_tags" _q,
162+ Entry{
163+ &st::settingsPremiumIconTags,
164+ tr::lng_premium_summary_subtitle_filter_tags (),
165+ tr::lng_premium_summary_about_filter_tags (),
166+ PremiumFeature::FilterTags,
167+ true ,
160168 },
161169 },
162170 };
@@ -402,6 +410,10 @@ void Business::setupContent() {
402410 Ui::AddSkip (content, st::settingsFromFileTop);
403411
404412 const auto showFeature = [=](PremiumFeature feature) {
413+ if (feature == PremiumFeature::FilterTags) {
414+ ShowPremiumPreviewToBuy (_controller, feature);
415+ return ;
416+ }
405417 showOther ([&] {
406418 switch (feature) {
407419 case PremiumFeature::AwayMessage: return AwayMessageId ();
@@ -437,6 +449,8 @@ void Business::setupContent() {
437449 return owner->session ().user ()->isFullLoaded ();
438450 case PremiumFeature::ChatLinks:
439451 return owner->session ().api ().chatLinks ().loaded ();
452+ case PremiumFeature::FilterTags:
453+ return true ;
440454 }
441455 Unexpected (" Feature in isReady." );
442456 };
@@ -791,12 +805,14 @@ std::vector<PremiumFeature> BusinessFeaturesOrder(
791805 return PremiumFeature::BusinessHours;
792806 } else if (s == u" business_location" _q) {
793807 return PremiumFeature::BusinessLocation;
794- } else if (s == u" business_bots " _q) {
795- return PremiumFeature::BusinessBots ;
808+ } else if (s == u" business_links " _q) {
809+ return PremiumFeature::ChatLinks ;
796810 } else if (s == u" business_intro" _q) {
797811 return PremiumFeature::ChatIntro;
798- } else if (s == " business_links" _q) {
799- return PremiumFeature::ChatLinks;
812+ } else if (s == u" business_bots" _q) {
813+ return PremiumFeature::BusinessBots;
814+ } else if (s == u" folder_tags" _q) {
815+ return PremiumFeature::FilterTags;
800816 }
801817 return PremiumFeature::kCount ;
802818 }) | ranges::views::filter ([](PremiumFeature feature) {
0 commit comments