fix: don't send or process webxdc status updates in pre-messages

it makes no sense to send or receive status updates in pre-messages for large webxdc attachments because they can't be processed anyway.
This commit is contained in:
holger krekel
2026-06-12 17:01:46 +02:00
parent 87c1fb2118
commit 6cd5b21a26
3 changed files with 31 additions and 9 deletions
+3 -1
View File
@@ -826,7 +826,9 @@ UPDATE config SET value=? WHERE keyname='configured_addr' AND value!=?1
}
}
if let Some(ref status_update) = mime_parser.webxdc_status_update {
if let Some(ref status_update) = mime_parser.webxdc_status_update
&& !matches!(mime_parser.pre_message, PreMessageMode::Pre { .. })
{
let can_info_msg;
let instance = if mime_parser
.parts