2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 22:46:10 +00:00

Moved out top promo from api and suggestions from config to single file.

This commit is contained in:
23rd
2025-05-06 11:11:45 +03:00
parent dc1459438c
commit c2e887a86e
13 changed files with 288 additions and 205 deletions

View File

@@ -48,11 +48,6 @@ public:
[[nodiscard]] rpl::producer<> refreshed() const;
[[nodiscard]] rpl::producer<> value() const;
[[nodiscard]] bool suggestionCurrent(const QString &key) const;
[[nodiscard]] rpl::producer<> suggestionRequested(
const QString &key) const;
void dismissSuggestion(const QString &key);
[[nodiscard]] bool newRequirePremiumFree() const;
[[nodiscard]] auto ignoredRestrictionReasons() const
@@ -125,7 +120,6 @@ private:
bool _pendingRefresh = false;
base::flat_map<QString, MTPJSONValue> _data;
rpl::event_stream<> _refreshed;
base::flat_set<QString> _dismissedSuggestions;
std::vector<QString> _ignoreRestrictionReasons;
rpl::event_stream<std::vector<QString>> _ignoreRestrictionChanges;