From e164355af36f080c73cecbf37ffd1277c496edb5 Mon Sep 17 00:00:00 2001 From: levlam Date: Sun, 2 Jun 2019 01:19:05 +0300 Subject: [PATCH] Fix setting last_new_message_id. GitOrigin-RevId: 69565843b6db635dffaa6e407ac406982abac967 --- 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 7c01b1a1..45b3d172 100644 --- a/td/telegram/MessagesManager.cpp +++ b/td/telegram/MessagesManager.cpp @@ -24997,7 +24997,7 @@ void MessagesManager::on_get_channel_dialog(DialogId dialog_id, MessageId last_m LOG(ERROR) << added_full_message_id << " doesn't became last new message"; dump_debug_message_op(d, 2); } - } else { + } else if (last_message_id.get() > d->last_new_message_id.get()) { set_dialog_last_new_message_id(d, last_message_id, "on_get_channel_dialog 40"); // skip updates about some messages }