mirror of
https://github.com/chatmail/core.git
synced 2026-05-03 13:26:28 +03:00
mimefactory: do not check if the key exists before rendering Autocrypt-Gossip
`render_gossip_header()` returns `None` in this case anyway.
This commit is contained in:
@@ -694,12 +694,9 @@ impl<'a> MimeFactory<'a> {
|
|||||||
&& self.should_do_gossip(context).await?
|
&& self.should_do_gossip(context).await?
|
||||||
{
|
{
|
||||||
for peerstate in peerstates.iter().filter_map(|(state, _)| state.as_ref()) {
|
for peerstate in peerstates.iter().filter_map(|(state, _)| state.as_ref()) {
|
||||||
if peerstate.peek_key(min_verified).is_some() {
|
if let Some(header) = peerstate.render_gossip_header(min_verified) {
|
||||||
if let Some(header) = peerstate.render_gossip_header(min_verified) {
|
message = message.header(Header::new("Autocrypt-Gossip".into(), header));
|
||||||
message =
|
is_gossiped = true;
|
||||||
message.header(Header::new("Autocrypt-Gossip".into(), header));
|
|
||||||
is_gossiped = true;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user