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,10 +34450,12 @@ MessagesManager::Message *MessagesManager::add_message_to_dialog(Dialog *d, uniq
on_dialog_updated(d->dialog_id, "do delete last message");
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>());
}
}
}
if (message_content_type == MessageContentType::ContactRegistered && !d->has_contact_registered_message) {
d->has_contact_registered_message = true;