Silence expected warning.

GitOrigin-RevId: a81ef99ffebdf41067318920110fbd7fb554da92
This commit is contained in:
levlam 2019-04-18 17:04:05 +03:00
parent 6d298adf73
commit c37d0d98dd

View File

@ -5035,7 +5035,8 @@ void ContactsManager::on_get_user(tl_object_ptr<telegram_api::User> &&user_ptr,
LOG(INFO) << "Receive empty " << user_id << " from " << source;
User *u = get_user_force(user_id);
if (u == nullptr) {
if (u == nullptr && Slice(source) != Slice("GetUsersQuery")) {
// userEmpty should be received only through getUsers for unexisting users
LOG(ERROR) << "Have no information about " << user_id << ", but received userEmpty from " << source;
}
return;