mirror of
https://github.com/chatmail/core.git
synced 2026-05-06 16:36:59 +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)
|
Ok(joining_chat_id)
|
||||||
}
|
}
|
||||||
QrInvite::Broadcast { .. } => {
|
QrInvite::Broadcast { .. } => {
|
||||||
// TODO code duplication with previous block
|
|
||||||
if !is_contact_in_chat(context, joining_chat_id, invite.contact_id()).await? {
|
if !is_contact_in_chat(context, joining_chat_id, invite.contact_id()).await? {
|
||||||
chat::add_to_chat_contacts_table(
|
chat::add_to_chat_contacts_table(
|
||||||
context,
|
context,
|
||||||
|
|||||||
Reference in New Issue
Block a user