From 6cd499ebc10154bf7680ad35db989a3c4fd1bf68 Mon Sep 17 00:00:00 2001 From: Hocuri Date: Wed, 10 Sep 2025 22:23:04 +0200 Subject: [PATCH] Accept 9 lines of code duplication in exchange for lower code complexity --- src/securejoin/bob.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/securejoin/bob.rs b/src/securejoin/bob.rs index 11f8f7e06..1b4be0d0e 100644 --- a/src/securejoin/bob.rs +++ b/src/securejoin/bob.rs @@ -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,