Drop message_id for outgoing replies in private chats.

This commit is contained in:
levlam 2023-10-29 14:25:42 +03:00
parent 23c42e937a
commit c38bb8c51a
2 changed files with 6 additions and 2 deletions

View File

@ -158,7 +158,11 @@ RepliedMessageInfo::RepliedMessageInfo(Td *td, const MessageInputReplyTo &input_
is_quote_manual_ = true;
}
if (input_reply_to.dialog_id_ != DialogId()) {
dialog_id_ = input_reply_to.dialog_id_;
if (input_reply_to.dialog_id_.get_type() == DialogType::Channel) {
dialog_id_ = input_reply_to.dialog_id_;
} else {
message_id_ = MessageId();
}
}
}

View File

@ -30,7 +30,7 @@ class Td;
class RepliedMessageInfo {
MessageId message_id_;
DialogId dialog_id_; // DialogId() if reply is to a message in the same chat
DialogId dialog_id_; // for replies from another known chats
int32 origin_date_ = 0; // for replies in other chats
MessageOrigin origin_; // for replies in other chats
unique_ptr<MessageContent> content_; // for replies in other chats