2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-30 22:25:12 +00:00

Update API scheme to layer 175. Business promo.

This commit is contained in:
John Preston
2024-02-19 11:35:53 +04:00
parent 0fad42b5b4
commit 0c991466f5
36 changed files with 756 additions and 13 deletions

View File

@@ -180,6 +180,7 @@ using Order = std::vector<QString>;
u"stories"_q,
u"more_upload"_q,
u"double_limits"_q,
u"business"_q,
u"last_seen"_q,
u"voice_to_text"_q,
u"faster_download"_q,
@@ -367,6 +368,16 @@ using Order = std::vector<QString>;
PremiumPreview::RealTimeTranslation,
},
},
{
u"business"_q,
Entry{
&st::settingsPremiumIconPlay, AssertIsDebug()
tr::lng_premium_summary_subtitle_business(),
tr::lng_premium_summary_about_business(),
PremiumPreview::Business,
true,
},
},
};
}
@@ -1671,9 +1682,9 @@ void AddSummaryPremium(
icons.reserve(int(entryMap.size()));
{
const auto &account = controller->session().account();
const auto mtpOrder = account.appConfig().get<Order>(
const auto mtpOrder = FallbackOrder();/* session->account().appConfig().get<Order>(
"premium_promo_order",
FallbackOrder());
FallbackOrder());*/ AssertIsDebug()
const auto processEntry = [&](Entry &entry) {
icons.push_back(entry.icon);
addRow(entry);