Rename option to "quick_reply_shortcut_message_count_max".

This commit is contained in:
levlam 2024-03-05 14:44:57 +03:00
parent f1c3bb5c33
commit b53fca6284
2 changed files with 3 additions and 2 deletions

View File

@ -1986,7 +1986,8 @@ void ConfigManager::process_app_config(tl_object_ptr<telegram_api::JSONValue> &c
continue;
}
if (key == "quick_reply_messages_limit") {
G()->set_option_integer("quick_reply_message_count_max", get_json_value_int(std::move(key_value->value_), key));
G()->set_option_integer("quick_reply_shortcut_message_count_max",
get_json_value_int(std::move(key_value->value_), key));
continue;
}

View File

@ -139,7 +139,7 @@ OptionManager::OptionManager(Td *td)
set_default_integer_option("group_wallpaper_level_min", is_test_dc ? 3 : 9);
set_default_integer_option("group_custom_wallpaper_level_min", is_test_dc ? 4 : 10);
set_default_integer_option("quick_reply_shortcut_count_max", is_test_dc ? 10 : 100);
set_default_integer_option("quick_reply_message_count_max", 20);
set_default_integer_option("quick_reply_shortcut_message_count_max", 20);
if (options.isset("my_phone_number") || !options.isset("my_id")) {
update_premium_options();