From c8b5ecce6c0931265329ef5d0efcbcfc9d411e46 Mon Sep 17 00:00:00 2001 From: levlam Date: Wed, 31 Jul 2024 14:18:05 +0300 Subject: [PATCH] Don't warn about is_slow_mode_enabled for old channels. --- td/telegram/ChatManager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/td/telegram/ChatManager.cpp b/td/telegram/ChatManager.cpp index 9b268a5f7..9f73804d9 100644 --- a/td/telegram/ChatManager.cpp +++ b/td/telegram/ChatManager.cpp @@ -8382,7 +8382,8 @@ void ChatManager::on_get_channel(telegram_api::channel &channel, const char *sou LOG_IF(ERROR, sign_messages) << "Need to sign messages in the supergroup " << channel_id << " from " << source; sign_messages = true; } else { - LOG_IF(ERROR, is_slow_mode_enabled) << "Slow mode enabled in the " << channel_id << " from " << source; + LOG_IF(ERROR, is_slow_mode_enabled && channel_id.get() >= 8000000000) + << "Slow mode enabled in the " << channel_id << " from " << source; LOG_IF(ERROR, is_gigagroup) << "Receive broadcast group as " << channel_id << " from " << source; LOG_IF(ERROR, is_forum) << "Receive broadcast forum as " << channel_id << " from " << source; is_slow_mode_enabled = false;