We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13b6c59 commit 4799653Copy full SHA for 4799653
td/telegram/ConfigManager.cpp
@@ -1439,7 +1439,7 @@ void ConfigManager::process_app_config(tl_object_ptr<telegram_api::JSONValue> &c
1439
auto it = integer_keys.find(key);
1440
if (it != integer_keys.end()) {
1441
G()->set_option_integer(it->second.empty() ? key : it->second,
1442
- get_json_value_int(std::move(key_value->value_), key));
+ max(0, get_json_value_int(std::move(key_value->value_), key)));
1443
continue;
1444
}
1445
0 commit comments