Allow unordered updateNewMessage for bots.

GitOrigin-RevId: 3aa3e6143eb0558f1a822ece051b9666725f0301
This commit is contained in:
levlam 2020-05-22 03:43:02 +03:00
parent 4d8c9a3a60
commit b1dc75cdc4

View File

@ -26449,7 +26449,7 @@ MessagesManager::Message *MessagesManager::add_message_to_dialog(Dialog *d, uniq
return nullptr;
}
if (*need_update && message_id <= d->last_new_message_id) {
if (*need_update && message_id <= d->last_new_message_id && !td_->auth_manager_->is_bot()) {
*need_update = false;
}