fix: Don't set is_bot for webxdc status updates (#5445)

Webxdc status update messages are always "Auto-Submitted: auto-generated", so they must be excluded
for is_bot flag calculation.
This commit is contained in:
iequidoo
2024-04-18 03:28:38 -03:00
committed by iequidoo
parent 17701b78d6
commit 92bf48684a
2 changed files with 6 additions and 1 deletions

View File

@@ -494,7 +494,7 @@ impl MimeMessage {
},
};
if parser.mdn_reports.is_empty() {
if parser.mdn_reports.is_empty() && parser.webxdc_status_update.is_none() {
// "Auto-Submitted" is also set by holiday-notices so we also check "chat-version".
let is_bot = parser.headers.get("auto-submitted")
== Some(&"auto-generated".to_string())