mirror of
https://github.com/chatmail/core.git
synced 2026-05-16 21:36:30 +03:00
message deletion request API (#6576)
this PR adds an API allowing users to delete their messages on other member's devices this PR is build on top of https://github.com/deltachat/deltachat-core-rust/pull/6573 which should be merged first a test is missing, otherwise ready for review; it is working already in https://github.com/deltachat/deltachat-ios/pull/2611
This commit is contained in:
@@ -734,6 +734,12 @@ impl MimeFactory {
|
||||
)
|
||||
.into(),
|
||||
));
|
||||
} else if let Some(rfc724_mid_list) = msg.param.get(Param::DeleteRequestFor) {
|
||||
headers.push((
|
||||
"Chat-Delete",
|
||||
mail_builder::headers::message_id::MessageId::new(rfc724_mid_list.to_string())
|
||||
.into(),
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -861,7 +867,10 @@ impl MimeFactory {
|
||||
if header_name == "message-id" {
|
||||
unprotected_headers.push(header.clone());
|
||||
hidden_headers.push(header.clone());
|
||||
} else if header_name == "chat-user-avatar" || header_name == "chat-edit" {
|
||||
} else if header_name == "chat-user-avatar"
|
||||
|| header_name == "chat-delete"
|
||||
|| header_name == "chat-edit"
|
||||
{
|
||||
hidden_headers.push(header.clone());
|
||||
} else if header_name == "autocrypt"
|
||||
&& !context.get_config_bool(Config::ProtectAutocrypt).await?
|
||||
|
||||
Reference in New Issue
Block a user