Drop message_id for outgoing replies in private chats.
This commit is contained in:
parent
23c42e937a
commit
c38bb8c51a
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user