Don't call get_history_from_the_end for bots.
This commit is contained in:
parent
054a823c1a
commit
b9036dda3e
@ -34450,10 +34450,12 @@ MessagesManager::Message *MessagesManager::add_message_to_dialog(Dialog *d, uniq
|
|||||||
|
|
||||||
on_dialog_updated(d->dialog_id, "do delete last message");
|
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,
|
send_closure_later(actor_id(this), &MessagesManager::get_history_from_the_end, d->dialog_id, false, false,
|
||||||
Promise<Unit>());
|
Promise<Unit>());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (message_content_type == MessageContentType::ContactRegistered && !d->has_contact_registered_message) {
|
if (message_content_type == MessageContentType::ContactRegistered && !d->has_contact_registered_message) {
|
||||||
d->has_contact_registered_message = true;
|
d->has_contact_registered_message = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user