Add "premium_gift_boost_count" option.
This commit is contained in:
parent
3e6ca71036
commit
d7a6e74bea
@ -1940,6 +1940,10 @@ void ConfigManager::process_app_config(tl_object_ptr<telegram_api::JSONValue> &c
|
||||
get_json_value_int(std::move(key_value->value_), key));
|
||||
continue;
|
||||
}
|
||||
if (key == "boosts_per_sent_gift") {
|
||||
G()->set_option_integer("premium_gift_boost_count", get_json_value_int(std::move(key_value->value_), key));
|
||||
continue;
|
||||
}
|
||||
|
||||
new_values.push_back(std::move(key_value));
|
||||
}
|
||||
|
@ -102,7 +102,7 @@ class ConfigManager final : public NetQueryCallback {
|
||||
|
||||
private:
|
||||
struct AppConfig {
|
||||
static constexpr int32 CURRENT_VERSION = 19;
|
||||
static constexpr int32 CURRENT_VERSION = 20;
|
||||
int32 version_ = 0;
|
||||
int32 hash_ = 0;
|
||||
telegram_api::object_ptr<telegram_api::JSONValue> config_;
|
||||
|
@ -143,6 +143,9 @@ OptionManager::OptionManager(Td *td)
|
||||
if (!have_option("channel_custom_accent_color_boost_level_min")) {
|
||||
set_option_integer("channel_custom_accent_color_boost_level_min", 1);
|
||||
}
|
||||
if (!have_option("premium_gift_boost_count")) {
|
||||
set_option_integer("premium_gift_boost_count", 3);
|
||||
}
|
||||
|
||||
set_option_empty("archive_and_mute_new_chats_from_unknown_users");
|
||||
set_option_empty("chat_filter_count_max");
|
||||
|
Loading…
Reference in New Issue
Block a user