Improve handling of telegram_api::updateUser.

This commit is contained in:
levlam 2022-12-26 13:23:05 +03:00
parent 439e0863f3
commit 996efb73fe

View File

@ -1522,6 +1522,10 @@ void UpdatesManager::process_get_difference_updates(
CHECK(!running_get_difference_); CHECK(!running_get_difference_);
} }
if (constructor_id == telegram_api::updateUser::ID) {
update = nullptr;
}
if (constructor_id == telegram_api::updateChat::ID) { if (constructor_id == telegram_api::updateChat::ID) {
update = nullptr; update = nullptr;
} }
@ -3361,6 +3365,7 @@ void UpdatesManager::on_update(tl_object_ptr<telegram_api::updateUserPhone> upda
} }
void UpdatesManager::on_update(tl_object_ptr<telegram_api::updateUser> update, Promise<Unit> &&promise) { void UpdatesManager::on_update(tl_object_ptr<telegram_api::updateUser> update, Promise<Unit> &&promise) {
td_->contacts_manager_->invalidate_user_full(UserId(update->user_id_));
promise.set_value(Unit()); promise.set_value(Unit());
} }