diff --git a/td/telegram/MessageInputReplyTo.cpp b/td/telegram/MessageInputReplyTo.cpp index a85a986c4..b7931051a 100644 --- a/td/telegram/MessageInputReplyTo.cpp +++ b/td/telegram/MessageInputReplyTo.cpp @@ -131,7 +131,7 @@ td_api::object_ptr MessageInputReplyTo::get_input_m } MessageId MessageInputReplyTo::get_same_chat_reply_to_message_id() const { - return is_same_chat_reply() ? message_id_ : MessageId(); + return message_id_.is_valid() || message_id_.is_valid_scheduled() ? message_id_ : MessageId(); } MessageFullId MessageInputReplyTo::get_reply_message_full_id(DialogId owner_dialog_id) const { diff --git a/td/telegram/MessageInputReplyTo.h b/td/telegram/MessageInputReplyTo.h index 63a259b51..1e95714f4 100644 --- a/td/telegram/MessageInputReplyTo.h +++ b/td/telegram/MessageInputReplyTo.h @@ -57,10 +57,6 @@ class MessageInputReplyTo { return !is_empty(); } - bool is_same_chat_reply() const { - return message_id_.is_valid() || message_id_.is_valid_scheduled(); - } - StoryFullId get_story_full_id() const { return story_full_id_; } diff --git a/td/telegram/RepliedMessageInfo.cpp b/td/telegram/RepliedMessageInfo.cpp index d11419bf4..4c2a9ca75 100644 --- a/td/telegram/RepliedMessageInfo.cpp +++ b/td/telegram/RepliedMessageInfo.cpp @@ -75,9 +75,6 @@ RepliedMessageInfo::RepliedMessageInfo(Td *td, tl_object_ptr