Add "can_gift_stars" option.
This commit is contained in:
parent
2844988d1f
commit
536893f50b
@ -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));
|
||||
}
|
||||
|
@ -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_;
|
||||
|
Loading…
Reference in New Issue
Block a user