Remove "channel_custom_accent_color_boost_level_min" option.
This commit is contained in:
parent
e4038723b2
commit
969f4a764f
@ -1497,7 +1497,7 @@ void ConfigManager::process_app_config(tl_object_ptr<telegram_api::JSONValue> &c
|
|||||||
key == "getfile_experimental_params" || key == "message_animated_emoji_max" ||
|
key == "getfile_experimental_params" || key == "message_animated_emoji_max" ||
|
||||||
key == "stickers_emoji_cache_time" || key == "stories_export_nopublic_link" || key == "test" ||
|
key == "stickers_emoji_cache_time" || key == "stories_export_nopublic_link" || key == "test" ||
|
||||||
key == "upload_max_fileparts_default" || key == "upload_max_fileparts_premium" ||
|
key == "upload_max_fileparts_default" || key == "upload_max_fileparts_premium" ||
|
||||||
key == "wallet_blockchain_name" || key == "wallet_config" || key == "wallet_enabled") {
|
key == "wallet_blockchain_name" || key == "wallet_config" || key == "wallet_enabled" || key == "channel_color_level_min") {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (key == "ignore_restriction_reasons") {
|
if (key == "ignore_restriction_reasons") {
|
||||||
@ -1940,11 +1940,6 @@ void ConfigManager::process_app_config(tl_object_ptr<telegram_api::JSONValue> &c
|
|||||||
G()->set_option_integer("giveaway_duration_max", get_json_value_int(std::move(key_value->value_), key));
|
G()->set_option_integer("giveaway_duration_max", get_json_value_int(std::move(key_value->value_), key));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (key == "channel_color_level_min") {
|
|
||||||
G()->set_option_integer("channel_custom_accent_color_boost_level_min",
|
|
||||||
get_json_value_int(std::move(key_value->value_), key));
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
if (key == "boosts_per_sent_gift") {
|
if (key == "boosts_per_sent_gift") {
|
||||||
G()->set_option_integer("premium_gift_boost_count", get_json_value_int(std::move(key_value->value_), key));
|
G()->set_option_integer("premium_gift_boost_count", get_json_value_int(std::move(key_value->value_), key));
|
||||||
continue;
|
continue;
|
||||||
|
@ -153,9 +153,6 @@ OptionManager::OptionManager(Td *td)
|
|||||||
if (!have_option("chat_available_reaction_count_max")) {
|
if (!have_option("chat_available_reaction_count_max")) {
|
||||||
set_option_integer("chat_available_reaction_count_max", 100);
|
set_option_integer("chat_available_reaction_count_max", 100);
|
||||||
}
|
}
|
||||||
if (!have_option("channel_custom_accent_color_boost_level_min")) {
|
|
||||||
set_option_integer("channel_custom_accent_color_boost_level_min", G()->is_test_dc() ? 1 : 5);
|
|
||||||
}
|
|
||||||
if (!have_option("channel_bg_icon_level_min")) {
|
if (!have_option("channel_bg_icon_level_min")) {
|
||||||
set_option_integer("channel_bg_icon_level_min", G()->is_test_dc() ? 1 : 4);
|
set_option_integer("channel_bg_icon_level_min", G()->is_test_dc() ? 1 : 4);
|
||||||
}
|
}
|
||||||
@ -175,6 +172,7 @@ OptionManager::OptionManager(Td *td)
|
|||||||
update_premium_options();
|
update_premium_options();
|
||||||
|
|
||||||
set_option_empty("archive_and_mute_new_chats_from_unknown_users");
|
set_option_empty("archive_and_mute_new_chats_from_unknown_users");
|
||||||
|
set_option_empty("channel_custom_accent_color_boost_level_min");
|
||||||
set_option_empty("chat_filter_count_max");
|
set_option_empty("chat_filter_count_max");
|
||||||
set_option_empty("chat_filter_chosen_chat_count_max");
|
set_option_empty("chat_filter_chosen_chat_count_max");
|
||||||
set_option_empty("forum_member_count_min");
|
set_option_empty("forum_member_count_min");
|
||||||
|
Loading…
Reference in New Issue
Block a user