diff --git a/td/telegram/MessageQuote.h b/td/telegram/MessageQuote.h index a317190d7df7..8925aa0ba93a 100644 --- a/td/telegram/MessageQuote.h +++ b/td/telegram/MessageQuote.h @@ -59,10 +59,6 @@ class MessageQuote { return text_.text.empty(); } - bool is_manual() const { - return is_manual_; - } - MessageQuote clone(bool ignore_is_manual = false) const; void add_dependencies(Dependencies &dependencies) const; diff --git a/td/telegram/RepliedMessageInfo.cpp b/td/telegram/RepliedMessageInfo.cpp index e9e06aad9834..5c8bb981c34f 100644 --- a/td/telegram/RepliedMessageInfo.cpp +++ b/td/telegram/RepliedMessageInfo.cpp @@ -124,9 +124,7 @@ RepliedMessageInfo::RepliedMessageInfo(Td *td, const MessageInputReplyTo &input_ return; } message_id_ = input_reply_to.message_id_; - if (!input_reply_to.quote_.is_empty()) { - quote_ = input_reply_to.quote_.clone(); - } + quote_ = input_reply_to.quote_.clone(); if (input_reply_to.dialog_id_ != DialogId()) { auto info = td->messages_manager_->get_forwarded_message_info({input_reply_to.dialog_id_, input_reply_to.message_id_}); @@ -139,7 +137,7 @@ RepliedMessageInfo::RepliedMessageInfo(Td *td, const MessageInputReplyTo &input_ content_ = std::move(info.content_); auto content_text = get_message_content_text_mutable(content_.get()); if (content_text != nullptr) { - if (!quote_.is_manual()) { + if (quote_.is_empty()) { quote_ = MessageQuote::create_automatic_quote(td, std::move(*content_text)); } *content_text = FormattedText();