Skip to content

Commit

Permalink
Fix ContactsManager::get_user with min-user for bots.
Browse files Browse the repository at this point in the history
  • Loading branch information
levlam committed Dec 31, 2021
1 parent d3e1385 commit 62d4e33
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions td/telegram/ContactsManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 62d4e33

Please sign in to comment.