Fix ContactsManager::get_user with min-user for bots.

This commit is contained in:
levlam 2021-12-31 16:33:46 +03:00
parent d3e1385b8b
commit 62d4e339de

View File

@ -13976,8 +13976,7 @@ bool ContactsManager::get_user(UserId user_id, int left_tries, Promise<Unit> &&p
get_user_force(user_id);
}
// TODO support loading user from database and merging it with min-user in memory
if (!have_min_user(user_id)) {
if (!have_min_user(user_id) || td_->auth_manager_->is_bot()) {
// TODO UserLoader
if (left_tries > 2 && G()->parameters().use_chat_info_db) {
send_closure_later(actor_id(this), &ContactsManager::load_user_from_database, nullptr, user_id,