Add "can_gift_stars" option.

This commit is contained in:
levlam 2024-07-26 18:48:38 +03:00
parent 2844988d1f
commit 536893f50b
2 changed files with 6 additions and 2 deletions

View File

@ -2043,13 +2043,17 @@ void ConfigManager::process_app_config(tl_object_ptr<telegram_api::JSONValue> &c
continue;
}
if (key == "story_weather_preload") {
G()->set_option_integer("can_preload_weather", get_json_value_bool(std::move(key_value->value_), key));
G()->set_option_boolean("can_preload_weather", get_json_value_bool(std::move(key_value->value_), key));
continue;
}
if (key == "ton_proxy_address") {
G()->set_option_string("ton_proxy_address", get_json_value_string(std::move(key_value->value_), key));
continue;
}
if (key == "stars_gifts_enabled") {
G()->set_option_boolean("can_gift_stars", get_json_value_bool(std::move(key_value->value_), key));
continue;
}
new_values.push_back(std::move(key_value));
}

View File

@ -85,7 +85,7 @@ class ConfigManager final : public NetQueryCallback {
private:
struct AppConfig {
static constexpr int32 CURRENT_VERSION = 55;
static constexpr int32 CURRENT_VERSION = 56;
int32 version_ = 0;
int32 hash_ = 0;
telegram_api::object_ptr<telegram_api::JSONValue> config_;