mirror of
https://github.com/chatmail/core.git
synced 2026-04-26 01:46:34 +03:00
Make Aheader::from_imffields accept &str, not const char *
This commit is contained in:
@@ -408,7 +408,8 @@ impl E2eeHelper {
|
||||
}
|
||||
}
|
||||
let mut peerstate = None;
|
||||
let autocryptheader = Aheader::from_imffields(from, imffields);
|
||||
let autocryptheader =
|
||||
as_opt_str(from).and_then(|from| Aheader::from_imffields(from, imffields));
|
||||
if message_time > 0 && !from.is_null() {
|
||||
peerstate = Peerstate::from_addr(context, &context.sql, as_str(from));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user