From 9bebe6dff6efcad851f0512285d0104ac25ad8ab Mon Sep 17 00:00:00 2001 From: levlam Date: Sat, 22 Jul 2023 19:17:55 +0300 Subject: [PATCH] Skip updateChannelTooLong in unknown chats. --- td/telegram/MessagesManager.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/td/telegram/MessagesManager.cpp b/td/telegram/MessagesManager.cpp index b33f18f81..61d78f3d4 100644 --- a/td/telegram/MessagesManager.cpp +++ b/td/telegram/MessagesManager.cpp @@ -6760,6 +6760,10 @@ void MessagesManager::on_update_channel_too_long(tl_object_ptrcontacts_manager_->have_channel_force(channel_id)) { + LOG(INFO) << "Skip updateChannelTooLong about unknown " << channel_id; + return; + } DialogId dialog_id = DialogId(channel_id); auto d = get_dialog_force(dialog_id, "on_update_channel_too_long 4");