From ec788c7505c4f2b31b59743d2f4f97d6fdcba451 Mon Sep 17 00:00:00 2001 From: levlam Date: Sat, 18 Nov 2023 00:06:31 +0300 Subject: [PATCH] Always warn about manual quote change. --- td/telegram/RepliedMessageInfo.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/td/telegram/RepliedMessageInfo.cpp b/td/telegram/RepliedMessageInfo.cpp index 870a9b612..9011b5602 100644 --- a/td/telegram/RepliedMessageInfo.cpp +++ b/td/telegram/RepliedMessageInfo.cpp @@ -232,9 +232,12 @@ bool RepliedMessageInfo::need_reply_changed_warning( return true; } if (old_info.quote_ != new_info.quote_) { + if (old_info.is_quote_manual_) { + return true; + } auto max_size = td->option_manager_->get_option_integer("message_reply_quote_length_max") - 70; if (static_cast(max(old_info.quote_.text.size(), new_info.quote_.text.size())) < max_size) { - // quote can't change, unless truncated differently + // automatic quote can't change, unless truncated differently return true; } }