mirror of
https://github.com/chatmail/core.git
synced 2026-05-03 13:26:28 +03:00
if a message is replaced by an error, this also removes special is_system_message states
This commit is contained in:
@@ -852,6 +852,7 @@ impl MimeMessage {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn repl_msg_by_error(&mut self, error_msg: impl AsRef<str>) {
|
pub fn repl_msg_by_error(&mut self, error_msg: impl AsRef<str>) {
|
||||||
|
self.is_system_message = SystemMessage::Unknown;
|
||||||
if let Some(part) = self.parts.first_mut() {
|
if let Some(part) = self.parts.first_mut() {
|
||||||
part.typ = Viewtype::Text;
|
part.typ = Viewtype::Text;
|
||||||
part.msg = format!("[{}]", error_msg.as_ref());
|
part.msg = format!("[{}]", error_msg.as_ref());
|
||||||
|
|||||||
Reference in New Issue
Block a user