Register replies for yet unsent forwarded messages with external replies.
This commit is contained in:
parent
ea6fa8e5d2
commit
da461f5da2
@ -28182,7 +28182,13 @@ Result<td_api::object_ptr<td_api::messages>> MessagesManager::forward_messages(
|
||||
m->real_forward_from_message_id = message_id;
|
||||
forwarded_message_id_to_new_message_id.emplace(message_id, m->message_id);
|
||||
if (forwarded_message->replied_message_info.is_external()) {
|
||||
if (!message_send_options.only_preview) {
|
||||
unregister_message_reply(to_dialog_id, m);
|
||||
}
|
||||
m->replied_message_info = forwarded_message->replied_message_info.clone(td_);
|
||||
if (!message_send_options.only_preview) {
|
||||
register_message_reply(to_dialog_id, m);
|
||||
}
|
||||
}
|
||||
|
||||
if (!message_send_options.only_preview) {
|
||||
|
Loading…
Reference in New Issue
Block a user