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) {
|
dialogs_.foreach([&](const DialogId &dialog_id, const unique_ptr<Dialog> &dialog) {
|
||||||
const Dialog *d = dialog.get();
|
const Dialog *d = dialog.get();
|
||||||
auto update = td_api::make_object<td_api::updateNewChat>(get_chat_object(d));
|
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>(
|
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_id_object(dialog_id, "updateChatLastMessage"), std::move(update->chat_->last_message_),
|
||||||
get_chat_positions_object(d)));
|
get_chat_positions_object(d)));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user