Always postpone updateChatLastMessage in getCurrentState.
This commit is contained in:
parent
844e6f2bfb
commit
8d2d01abcc
@ -40201,7 +40201,7 @@ void MessagesManager::get_current_state(vector<td_api::object_ptr<td_api::Update
|
||||
dialogs_.foreach([&](const DialogId &dialog_id, const unique_ptr<Dialog> &dialog) {
|
||||
const Dialog *d = dialog.get();
|
||||
auto update = td_api::make_object<td_api::updateNewChat>(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<td_api::updateChatLastMessage>(
|
||||
get_chat_id_object(dialog_id, "updateChatLastMessage"), std::move(update->chat_->last_message_),
|
||||
get_chat_positions_object(d)));
|
||||
|
Loading…
Reference in New Issue
Block a user