Fix "added_shareable_chat_folder_count_max" option.
This commit is contained in:
parent
c945709bf4
commit
8c69dbcaee
@ -1994,7 +1994,7 @@ void ConfigManager::process_app_config(tl_object_ptr<telegram_api::JSONValue> &c
|
||||
options.set_option_integer("chat_folder_invite_link_count_max",
|
||||
options.get_option_integer("chatlist_invites_limit_premium", 20));
|
||||
options.set_option_integer("added_shareable_chat_folder_count_max",
|
||||
options.get_option_integer("chatlist_invites_limit_premium", 20));
|
||||
options.get_option_integer("chatlists_joined_limit_premium", 20));
|
||||
} else {
|
||||
options.set_option_integer("chat_folder_count_max", options.get_option_integer("dialog_filters_limit_default", 10));
|
||||
options.set_option_integer("chat_folder_chosen_chat_count_max",
|
||||
@ -2010,7 +2010,7 @@ void ConfigManager::process_app_config(tl_object_ptr<telegram_api::JSONValue> &c
|
||||
options.set_option_integer("chat_folder_invite_link_count_max",
|
||||
options.get_option_integer("chatlist_invites_limit_default", 3));
|
||||
options.set_option_integer("added_shareable_chat_folder_count_max",
|
||||
options.get_option_integer("chatlist_invites_limit_default", 2));
|
||||
options.get_option_integer("chatlists_joined_limit_default", 2));
|
||||
}
|
||||
|
||||
if (!is_premium_available) {
|
||||
|
@ -102,7 +102,7 @@ class ConfigManager final : public NetQueryCallback {
|
||||
|
||||
private:
|
||||
struct AppConfig {
|
||||
static constexpr int32 CURRENT_VERSION = 7;
|
||||
static constexpr int32 CURRENT_VERSION = 8;
|
||||
int32 version_ = 0;
|
||||
int32 hash_ = 0;
|
||||
telegram_api::object_ptr<telegram_api::JSONValue> config_;
|
||||
|
Loading…
Reference in New Issue
Block a user