mirror of
https://github.com/chatmail/core.git
synced 2026-05-05 22:36:30 +03:00
refactor: remove Aheader::new
This commit is contained in:
@@ -1092,13 +1092,13 @@ impl MimeFactory {
|
||||
continue;
|
||||
}
|
||||
|
||||
let header = Aheader::new(
|
||||
addr.clone(),
|
||||
key.clone(),
|
||||
let header = Aheader {
|
||||
addr: addr.clone(),
|
||||
public_key: key.clone(),
|
||||
// Autocrypt 1.1.0 specification says that
|
||||
// `prefer-encrypt` attribute SHOULD NOT be included.
|
||||
EncryptPreference::NoPreference,
|
||||
)
|
||||
prefer_encrypt: EncryptPreference::NoPreference,
|
||||
}
|
||||
.to_string();
|
||||
|
||||
message = message.header(
|
||||
|
||||
Reference in New Issue
Block a user