Fix updating user links.

GitOrigin-RevId: 9c4098524f6f3f817bae9d4eb33b244282dd378e
This commit is contained in:
levlam 2019-01-10 22:02:45 +03:00
parent 134785fc3d
commit 68cc159a54

View File

@ -5111,7 +5111,6 @@ void ContactsManager::on_get_user(tl_object_ptr<telegram_api::User> &&user_ptr,
on_update_user_photo(u, user_id, std::move(user->photo_));
if (is_received) {
on_update_user_online(u, user_id, std::move(user->status_));
}
LinkState out, in;
if (flags & USER_FLAG_IS_MUTUAL_CONTACT) {
@ -5128,6 +5127,7 @@ void ContactsManager::on_get_user(tl_object_ptr<telegram_api::User> &&user_ptr,
in = LinkState::Unknown;
}
on_update_user_links(u, user_id, out, in);
}
if (is_received || !u->is_received) {
on_update_user_name(u, user_id, std::move(user->first_name_), std::move(user->last_name_),