Prefer original message as reply source.
This commit is contained in:
parent
04b431608d
commit
9cf1afe1b0
@ -176,8 +176,11 @@ RepliedMessageInfo::RepliedMessageInfo(Td *td, const MessageInputReplyTo &input_
|
|||||||
}
|
}
|
||||||
*content_text = {};
|
*content_text = {};
|
||||||
}
|
}
|
||||||
|
auto origin_message_full_id = origin_.get_message_full_id();
|
||||||
if (input_reply_to.dialog_id_.get_type() == DialogType::Channel) {
|
if (origin_message_full_id.get_message_id().is_valid()) {
|
||||||
|
message_id_ = origin_message_full_id.get_message_id();
|
||||||
|
dialog_id_ = origin_message_full_id.get_dialog_id();
|
||||||
|
} else if (input_reply_to.dialog_id_.get_type() == DialogType::Channel) {
|
||||||
dialog_id_ = input_reply_to.dialog_id_;
|
dialog_id_ = input_reply_to.dialog_id_;
|
||||||
} else {
|
} else {
|
||||||
message_id_ = MessageId();
|
message_id_ = MessageId();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user