From 2e0d52f61820065e00025a24e8c7fb260b7b4c20 Mon Sep 17 00:00:00 2001 From: levlam Date: Tue, 5 Mar 2024 16:41:10 +0300 Subject: [PATCH] Ignore service and live location messages in quick replies. --- td/telegram/QuickReplyManager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/td/telegram/QuickReplyManager.cpp b/td/telegram/QuickReplyManager.cpp index fc02a7a9b..b792817af 100644 --- a/td/telegram/QuickReplyManager.cpp +++ b/td/telegram/QuickReplyManager.cpp @@ -538,7 +538,8 @@ unique_ptr QuickReplyManager::create_messa } auto content_type = content->get_type(); - if (is_expired_message_content(content_type)) { + if (is_service_message_content(content_type) || content_type == MessageContentType::LiveLocation || + is_expired_message_content(content_type)) { LOG(ERROR) << "Receive " << content_type << " from " << source; break; }