Reget config after account phone number is changed.

This commit is contained in:
levlam 2024-03-29 17:37:44 +03:00
parent fd1d1dbb6c
commit e9794b9215

View File

@ -552,6 +552,11 @@ void OptionManager::on_option_updated(Slice name) {
}
}
break;
case 'm':
if (name == "my_phone_number") {
send_closure(G()->config_manager(), &ConfigManager::reget_config, Promise<Unit>());
}
break;
case 'n':
if (name == "need_premium_for_new_chat_privacy") {
update_premium_options();