mirror of
https://github.com/chatmail/core.git
synced 2026-04-24 17:06:28 +03:00
Accept 9 lines of code duplication in exchange for lower code complexity
This commit is contained in:
@@ -152,7 +152,6 @@ pub(super) async fn start_protocol(context: &Context, invite: QrInvite) -> Resul
|
||||
Ok(joining_chat_id)
|
||||
}
|
||||
QrInvite::Broadcast { .. } => {
|
||||
// TODO code duplication with previous block
|
||||
if !is_contact_in_chat(context, joining_chat_id, invite.contact_id()).await? {
|
||||
chat::add_to_chat_contacts_table(
|
||||
context,
|
||||
|
||||
Reference in New Issue
Block a user