Don't call get_history_from_the_end for bots.

This commit is contained in:
levlam 2022-04-17 14:33:34 +03:00
parent 054a823c1a
commit b9036dda3e

View File

@ -34450,8 +34450,10 @@ MessagesManager::Message *MessagesManager::add_message_to_dialog(Dialog *d, uniq
on_dialog_updated(d->dialog_id, "do delete last message");
send_closure_later(actor_id(this), &MessagesManager::get_history_from_the_end, d->dialog_id, false, false,
Promise<Unit>());
if (!td_->auth_manager_->is_bot()) {
send_closure_later(actor_id(this), &MessagesManager::get_history_from_the_end, d->dialog_id, false, false,
Promise<Unit>());
}
}
}