Add "quick_reply_message_count_max" option.
This commit is contained in:
parent
f7b6f81c52
commit
e61c4d03e5
@ -1985,6 +1985,10 @@ void ConfigManager::process_app_config(tl_object_ptr<telegram_api::JSONValue> &c
|
|||||||
get_json_value_int(std::move(key_value->value_), key));
|
get_json_value_int(std::move(key_value->value_), key));
|
||||||
continue;
|
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));
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
new_values.push_back(std::move(key_value));
|
new_values.push_back(std::move(key_value));
|
||||||
}
|
}
|
||||||
|
@ -102,7 +102,7 @@ class ConfigManager final : public NetQueryCallback {
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
struct AppConfig {
|
struct AppConfig {
|
||||||
static constexpr int32 CURRENT_VERSION = 31;
|
static constexpr int32 CURRENT_VERSION = 32;
|
||||||
int32 version_ = 0;
|
int32 version_ = 0;
|
||||||
int32 hash_ = 0;
|
int32 hash_ = 0;
|
||||||
telegram_api::object_ptr<telegram_api::JSONValue> config_;
|
telegram_api::object_ptr<telegram_api::JSONValue> config_;
|
||||||
|
@ -139,6 +139,7 @@ OptionManager::OptionManager(Td *td)
|
|||||||
set_default_integer_option("group_wallpaper_level_min", is_test_dc ? 3 : 9);
|
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("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_shortcut_count_max", is_test_dc ? 10 : 100);
|
||||||
|
set_default_integer_option("quick_reply_message_count_max", 20);
|
||||||
|
|
||||||
if (options.isset("my_phone_number") || !options.isset("my_id")) {
|
if (options.isset("my_phone_number") || !options.isset("my_id")) {
|
||||||
update_premium_options();
|
update_premium_options();
|
||||||
|
Loading…
Reference in New Issue
Block a user