Don't keep full message source for initially forwarded messages.

This commit is contained in:
levlam 2024-01-24 20:01:29 +03:00
parent d7e35f4c44
commit 56d75e7c53

View File

@ -26708,6 +26708,10 @@ unique_ptr<MessageForwardInfo> MessagesManager::create_message_forward_info(Dial
if (from_dialog_id != my_dialog_id || content_type == MessageContentType::Dice) {
auto origin = get_forwarded_message_origin(from_dialog_id, m);
if (!origin.is_empty()) {
if (!last_message_info.is_empty()) {
last_message_info =
LastForwardedMessageInfo(from_dialog_id, m->message_id, DialogId(), string(), 0, m->is_outgoing);
}
return td::make_unique<MessageForwardInfo>(std::move(origin), m->date, std::move(last_message_info), "", false);
}
}