fix: do not return an error from receive_imf if we fail to add a member because we are not in chat

This happens when we receive a vg-request-with-auth message
for a chat from which we have been removed already.
This commit is contained in:
link2xt
2025-11-07 22:35:43 +00:00
committed by l
parent 5a1e0e8824
commit aaa0f8e245

View File

@@ -3742,7 +3742,11 @@ pub(crate) async fn add_contact_to_chat_ex(
context.emit_event(EventType::ErrorSelfNotInGroup(
"Cannot add contact to group; self not in group.".into(),
));
bail!("can not add contact because the account is not part of the group/broadcast");
warn!(
context,
"Can not add contact because the account is not part of the group/broadcast."
);
return Ok(false);
}
let sync_qr_code_tokens;