Check options in alphabetical order.
This commit is contained in:
parent
82e3cef939
commit
0369a1a185
@ -781,21 +781,21 @@ void OptionManager::set_option(const string &name, td_api::object_ptr<td_api::Op
|
||||
if (!is_bot && set_boolean_option("disable_contact_registered_notifications")) {
|
||||
return;
|
||||
}
|
||||
if (!is_bot && set_boolean_option("disable_sent_scheduled_message_notifications")) {
|
||||
return;
|
||||
}
|
||||
if (!is_bot && set_boolean_option("disable_top_chats")) {
|
||||
return;
|
||||
}
|
||||
if (set_boolean_option("disable_network_statistics")) {
|
||||
return;
|
||||
}
|
||||
if (set_boolean_option("disable_persistent_network_statistics")) {
|
||||
return;
|
||||
}
|
||||
if (!is_bot && set_boolean_option("disable_sent_scheduled_message_notifications")) {
|
||||
return;
|
||||
}
|
||||
if (set_boolean_option("disable_time_adjustment_protection")) {
|
||||
return;
|
||||
}
|
||||
if (!is_bot && set_boolean_option("disable_top_chats")) {
|
||||
return;
|
||||
}
|
||||
if (name == "drop_notification_ids") {
|
||||
G()->td_db()->get_binlog_pmc()->erase("notification_id_current");
|
||||
G()->td_db()->get_binlog_pmc()->erase("notification_group_id_current");
|
||||
@ -848,10 +848,10 @@ void OptionManager::set_option(const string &name, td_api::object_ptr<td_api::Op
|
||||
if (!is_bot && set_string_option("language_pack_database_path", [](Slice value) { return true; })) {
|
||||
return;
|
||||
}
|
||||
if (!is_bot && set_string_option("localization_target", LanguagePackManager::check_language_pack_name)) {
|
||||
if (!is_bot && set_string_option("language_pack_id", LanguagePackManager::check_language_code_name)) {
|
||||
return;
|
||||
}
|
||||
if (!is_bot && set_string_option("language_pack_id", LanguagePackManager::check_language_code_name)) {
|
||||
if (!is_bot && set_string_option("localization_target", LanguagePackManager::check_language_pack_name)) {
|
||||
return;
|
||||
}
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user