Add internal option "authorization_autoconfirm_period".
This commit is contained in:
parent
2e4594a35a
commit
6a4c78e849
@ -1912,6 +1912,11 @@ void ConfigManager::process_app_config(tl_object_ptr<telegram_api::JSONValue> &c
|
||||
get_json_value_string(std::move(key_value->value_), key) == "premium");
|
||||
continue;
|
||||
}
|
||||
if (key == "authorization_autoconfirm_period") {
|
||||
G()->set_option_integer("authorization_autoconfirm_period",
|
||||
get_json_value_int(std::move(key_value->value_), key));
|
||||
continue;
|
||||
}
|
||||
|
||||
new_values.push_back(std::move(key_value));
|
||||
}
|
||||
|
@ -102,7 +102,7 @@ class ConfigManager final : public NetQueryCallback {
|
||||
|
||||
private:
|
||||
struct AppConfig {
|
||||
static constexpr int32 CURRENT_VERSION = 12;
|
||||
static constexpr int32 CURRENT_VERSION = 13;
|
||||
int32 version_ = 0;
|
||||
int32 hash_ = 0;
|
||||
telegram_api::object_ptr<telegram_api::JSONValue> config_;
|
||||
|
@ -263,7 +263,8 @@ bool OptionManager::is_internal_option(Slice name) {
|
||||
case 'a':
|
||||
return name == "about_length_limit_default" || name == "about_length_limit_premium" ||
|
||||
name == "aggressive_anti_spam_supergroup_member_count_min" || name == "animated_emoji_zoom" ||
|
||||
name == "animation_search_emojis" || name == "animation_search_provider";
|
||||
name == "animation_search_emojis" || name == "animation_search_provider" ||
|
||||
name == "authorization_autoconfirm_period";
|
||||
case 'b':
|
||||
return name == "base_language_pack_version";
|
||||
case 'c':
|
||||
|
Loading…
x
Reference in New Issue
Block a user