From b25e039a990a0acc8b2ef5522466e7e2137fc2cd Mon Sep 17 00:00:00 2001 From: levlam Date: Tue, 22 Oct 2019 20:15:40 +0300 Subject: [PATCH] Fix running getDifference from read_history_inbox. GitOrigin-RevId: d756bf323db13a40f7e09f070d522ab61549b489 --- td/telegram/MessagesManager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/td/telegram/MessagesManager.cpp b/td/telegram/MessagesManager.cpp index a329b9bc..8accb27d 100644 --- a/td/telegram/MessagesManager.cpp +++ b/td/telegram/MessagesManager.cpp @@ -8497,7 +8497,8 @@ void MessagesManager::read_history_inbox(DialogId dialog_id, MessageId max_messa } if (max_message_id.get() > d->last_new_message_id.get() && dialog_id.get_type() == DialogType::Channel) { - get_channel_difference(dialog_id, d->pts, true, "read_history_inbox"); + LOG(INFO) << "Schedule getDifference in " << dialog_id.get_channel_id(); + channel_get_difference_retry_timeout_.add_timeout_in(dialog_id.get(), 0.001); } bool is_saved_messages = dialog_id == get_my_dialog_id();