Register replies for yet unsent forwarded messages with external replies.

This commit is contained in:
levlam 2023-11-06 19:15:47 +03:00
parent ea6fa8e5d2
commit da461f5da2

View File

@ -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) {