From b1dc75cdc4b71cb535faec1ec6e85d853426a128 Mon Sep 17 00:00:00 2001 From: levlam Date: Fri, 22 May 2020 03:43:02 +0300 Subject: [PATCH] Allow unordered updateNewMessage for bots. GitOrigin-RevId: 3aa3e6143eb0558f1a822ece051b9666725f0301 --- td/telegram/MessagesManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/td/telegram/MessagesManager.cpp b/td/telegram/MessagesManager.cpp index 2b096add..70199e65 100644 --- a/td/telegram/MessagesManager.cpp +++ b/td/telegram/MessagesManager.cpp @@ -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; }