From a987ec3b00bc50c1c6971b56a62e8fdcf659b32d Mon Sep 17 00:00:00 2001 From: levlam Date: Mon, 2 Apr 2018 02:16:38 +0300 Subject: [PATCH] Fix add_local_message. GitOrigin-RevId: 75f794d823f120d7b99af5dd57e54535e791cd96 --- td/telegram/MessagesManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/td/telegram/MessagesManager.cpp b/td/telegram/MessagesManager.cpp index 624fb87d..509ddd05 100644 --- a/td/telegram/MessagesManager.cpp +++ b/td/telegram/MessagesManager.cpp @@ -18143,10 +18143,10 @@ Result MessagesManager::add_local_message( m->have_previous = true; m->have_next = true; - bool need_update = false; + bool need_update = true; bool need_update_dialog_pos = false; auto result = - add_message_to_dialog(d, std::move(m), false, &need_update, &need_update_dialog_pos, "add local message"); + add_message_to_dialog(d, std::move(m), true, &need_update, &need_update_dialog_pos, "add local message"); CHECK(result != nullptr); if (message_content.clear_draft) {