feat: do not set "unknown sender for this chat" error

This commit is contained in:
link2xt
2025-08-18 07:55:04 +00:00
committed by l
parent 143ba6d5e7
commit 1b6450b210
4 changed files with 3 additions and 15 deletions

View File

@@ -1693,12 +1693,6 @@ async fn add_parts(
let name: &str = from.display_name.as_ref().unwrap_or(&from.addr);
for part in &mut mime_parser.parts {
part.param.set(Param::OverrideSenderDisplayname, name);
if chat.is_protected() {
// In protected chat, also mark the message with an error.
let s = stock_str::unknown_sender_for_chat(context).await;
part.error = Some(s);
}
}
}
}