From aaa0f8e2454842c838b36331fbf3ffe7e20539b1 Mon Sep 17 00:00:00 2001 From: link2xt Date: Fri, 7 Nov 2025 22:35:43 +0000 Subject: [PATCH] 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. --- src/chat.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/chat.rs b/src/chat.rs index 74354922e..c94ab920c 100644 --- a/src/chat.rs +++ b/src/chat.rs @@ -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;