Accept 9 lines of code duplication in exchange for lower code complexity

This commit is contained in:
Hocuri
2025-09-10 22:23:04 +02:00
parent abd091db4c
commit 6cd499ebc1

View File

@@ -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,