Skip to content

Commit aaa0f8e

Browse files
committed
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.
1 parent 5a1e0e8 commit aaa0f8e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/chat.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3742,7 +3742,11 @@ pub(crate) async fn add_contact_to_chat_ex(
37423742
context.emit_event(EventType::ErrorSelfNotInGroup(
37433743
"Cannot add contact to group; self not in group.".into(),
37443744
));
3745-
bail!("can not add contact because the account is not part of the group/broadcast");
3745+
warn!(
3746+
context,
3747+
"Can not add contact because the account is not part of the group/broadcast."
3748+
);
3749+
return Ok(false);
37463750
}
37473751

37483752
let sync_qr_code_tokens;

0 commit comments

Comments
 (0)