Fix add_local_message.

GitOrigin-RevId: 75f794d823f120d7b99af5dd57e54535e791cd96
This commit is contained in:
levlam 2018-04-02 02:16:38 +03:00
parent 69c785c3ba
commit a987ec3b00

View File

@ -18143,10 +18143,10 @@ Result<MessageId> MessagesManager::add_local_message(
m->have_previous = true; m->have_previous = true;
m->have_next = true; m->have_next = true;
bool need_update = false; bool need_update = true;
bool need_update_dialog_pos = false; bool need_update_dialog_pos = false;
auto result = 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); CHECK(result != nullptr);
if (message_content.clear_draft) { if (message_content.clear_draft) {