Avoid duplicate UserFull updates.

This commit is contained in:
levlam 2021-09-07 18:02:03 +03:00
parent 168399f21d
commit f59ba4b5e5

View File

@ -11061,7 +11061,7 @@ void ContactsManager::on_update_user_is_blocked(UserId user_id, bool is_blocked)
}
UserFull *user_full = get_user_full_force(user_id);
if (user_full == nullptr) {
if (user_full == nullptr || user_full->is_blocked == is_blocked) {
return;
}
on_update_user_full_is_blocked(user_full, user_id, is_blocked);