Add "can_preload_weather" option.
This commit is contained in:
parent
5a01890272
commit
1e3ea181d4
@ -2042,6 +2042,10 @@ void ConfigManager::process_app_config(tl_object_ptr<telegram_api::JSONValue> &c
|
||||
G()->set_option_integer("bot_media_preview_count_max", get_json_value_int(std::move(key_value->value_), key));
|
||||
continue;
|
||||
}
|
||||
if (key == "story_weather_preload") {
|
||||
G()->set_option_integer("can_preload_weather", 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 = 52;
|
||||
static constexpr int32 CURRENT_VERSION = 53;
|
||||
int32 version_ = 0;
|
||||
int32 hash_ = 0;
|
||||
telegram_api::object_ptr<telegram_api::JSONValue> config_;
|
||||
|
Loading…
x
Reference in New Issue
Block a user