make clippy happy

This commit is contained in:
B. Petersen
2020-10-15 16:29:21 +02:00
parent 010be693e1
commit 6ec743f8b1

View File

@@ -1184,8 +1184,7 @@ async fn create_or_lookup_group(
let (mut chat_id, _, _blocked) = chat::get_chat_id_by_grpid(context, &grpid) let (mut chat_id, _, _blocked) = chat::get_chat_id_by_grpid(context, &grpid)
.await .await
.unwrap_or((ChatId::new(0), false, Blocked::Not)); .unwrap_or((ChatId::new(0), false, Blocked::Not));
if !chat_id.is_unset() { if !chat_id.is_unset() && !chat::is_contact_in_chat(context, chat_id, from_id as u32).await {
if !chat::is_contact_in_chat(context, chat_id, from_id as u32).await {
// The From-address is not part of this group. // The From-address is not part of this group.
// It could be a new user or a DSN from a mailer-daemon. // It could be a new user or a DSN from a mailer-daemon.
// in any case we do not want to recreate the member list // in any case we do not want to recreate the member list
@@ -1195,7 +1194,6 @@ async fn create_or_lookup_group(
let s = context.stock_str(StockMessage::UnknownSenderForChat).await; let s = context.stock_str(StockMessage::UnknownSenderForChat).await;
mime_parser.repl_msg_by_error(s.to_string()); mime_parser.repl_msg_by_error(s.to_string());
} }
}
// check if the group does not exist but should be created // check if the group does not exist but should be created
let group_explicitly_left = chat::is_group_explicitly_left(context, &grpid) let group_explicitly_left = chat::is_group_explicitly_left(context, &grpid)