add/send info-message on protection changes

This commit is contained in:
B. Petersen
2020-10-04 13:47:29 +02:00
parent 49b5962568
commit 5e07a36cd2
5 changed files with 54 additions and 3 deletions

View File

@@ -846,6 +846,18 @@ impl<'a, 'b> MimeFactory<'a, 'b> {
};
}
}
SystemMessage::ChatProtectionEnabled => {
protected_headers.push(Header::new(
"Chat-Content".to_string(),
"protection-enabled".to_string(),
));
}
SystemMessage::ChatProtectionDisabled => {
protected_headers.push(Header::new(
"Chat-Content".to_string(),
"protection-disabled".to_string(),
));
}
_ => {}
}