Change need_apply_min_photo only from non-min users.

GitOrigin-RevId: c2079f22f63b3717cd049eafcec524a76bbfd8c7
This commit is contained in:
levlam 2020-09-25 18:09:17 +03:00
parent 168675efd2
commit 68229982da

View File

@ -7256,7 +7256,7 @@ void ContactsManager::on_get_user(tl_object_ptr<telegram_api::User> &&user_ptr,
LOG(DEBUG) << "Bot info version has changed for " << user_id;
u->need_save_to_database = true;
}
if (u->need_apply_min_photo != need_apply_min_photo) {
if (is_received && u->need_apply_min_photo != need_apply_min_photo) {
u->need_apply_min_photo = need_apply_min_photo;
u->need_save_to_database = true;
}