mirror of
https://github.com/chatmail/core.git
synced 2026-04-28 19:06:35 +03:00
simpler subject of Autocrypt-Setup-Message (#2673)
since some time, core handles per-message-subjects and Mimefactory also picks that up. therefore, we can remove the old special handling.
This commit is contained in:
@@ -234,7 +234,7 @@ async fn do_initiate_key_transfer(context: &Context) -> Result<String> {
|
||||
msg = Message::default();
|
||||
msg.viewtype = Viewtype::File;
|
||||
msg.param.set(Param::File, setup_file_blob.as_name());
|
||||
|
||||
msg.subject = stock_str::ac_setup_msg_subject(context).await;
|
||||
msg.param
|
||||
.set(Param::MimeType, "application/autocrypt-setup");
|
||||
msg.param.set_cmd(SystemMessage::AutocryptSetupMessage);
|
||||
|
||||
@@ -388,10 +388,6 @@ impl<'a> MimeFactory<'a> {
|
||||
|
||||
let subject = match self.loaded {
|
||||
Loaded::Message { ref chat } => {
|
||||
if self.msg.param.get_cmd() == SystemMessage::AutocryptSetupMessage {
|
||||
return Ok(stock_str::ac_setup_msg_subject(context).await);
|
||||
}
|
||||
|
||||
if !self.msg.subject.is_empty() {
|
||||
return Ok(self.msg.subject.clone());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user