From 8d2d01abcc4673af2a365f4223111340150b10da Mon Sep 17 00:00:00 2001 From: levlam Date: Wed, 11 Oct 2023 00:28:56 +0300 Subject: [PATCH] Always postpone updateChatLastMessage in getCurrentState. --- 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 65c3337c8..c78646aab 100644 --- a/td/telegram/MessagesManager.cpp +++ b/td/telegram/MessagesManager.cpp @@ -40201,7 +40201,7 @@ void MessagesManager::get_current_state(vector &dialog) { const Dialog *d = dialog.get(); auto update = td_api::make_object(get_chat_object(d)); - if (update->chat_->last_message_ != nullptr && update->chat_->last_message_->forward_info_ != nullptr) { + if (update->chat_->last_message_ != nullptr) { last_message_updates.push_back(td_api::make_object( get_chat_id_object(dialog_id, "updateChatLastMessage"), std::move(update->chat_->last_message_), get_chat_positions_object(d)));