fix: Generate new pre-message Message-ID when forwarding

Otherwise if it's forwarded to a device that already has the original
message, the pre-message isn't received and this results in a message
having no text and `Forwarded` param.

Co-authored-by: Hocuri <hocuri@gmx.de>
This commit is contained in:
iequidoo
2026-05-07 19:35:03 -03:00
committed by GitHub
parent 6fdee2b92d
commit 18e1ecbb94
2 changed files with 42 additions and 0 deletions

View File

@@ -4539,6 +4539,7 @@ pub async fn forward_msgs_2ctx(
msg.state = MessageState::OutPending;
msg.rfc724_mid = create_outgoing_rfc724_mid();
msg.pre_rfc724_mid.clear();
msg.timestamp_sort = curr_timestamp;
chat.prepare_msg_raw(ctx_dst, &mut msg, None).await?;