Reget config after account phone number is changed.
This commit is contained in:
parent
fd1d1dbb6c
commit
e9794b9215
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user