Add "channel_custom_accent_color_boost_level_min" option.

This commit is contained in:
levlam 2023-10-18 18:22:54 +03:00
parent 28bdceaaef
commit c249fe39af
3 changed files with 9 additions and 1 deletions

View File

@ -1926,6 +1926,11 @@ void ConfigManager::process_app_config(tl_object_ptr<telegram_api::JSONValue> &c
G()->set_option_integer("giveaway_country_count_max", get_json_value_int(std::move(key_value->value_), key));
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;
}
new_values.push_back(std::move(key_value));
}

View File

@ -102,7 +102,7 @@ class ConfigManager final : public NetQueryCallback {
private:
struct AppConfig {
static constexpr int32 CURRENT_VERSION = 16;
static constexpr int32 CURRENT_VERSION = 17;
int32 version_ = 0;
int32 hash_ = 0;
telegram_api::object_ptr<telegram_api::JSONValue> config_;

View File

@ -134,6 +134,9 @@ OptionManager::OptionManager(Td *td)
if (!have_option("giveaway_country_count_max")) {
set_option_integer("giveaway_country_count_max", G()->is_test_dc() ? 3 : 10);
}
if (!have_option("channel_custom_accent_color_boost_level_min")) {
set_option_integer("channel_custom_accent_color_boost_level_min", 1);
}
set_option_empty("archive_and_mute_new_chats_from_unknown_users");
set_option_empty("chat_filter_count_max");