test: Bob has 0 members in the chat until securejoin finishes

This commit is contained in:
link2xt
2025-11-07 19:29:02 +00:00
committed by l
parent 1946603be6
commit 1b1a5f170e

View File

@@ -477,6 +477,13 @@ async fn test_secure_join() -> Result<()> {
bob.recv_msg_trash(&sent).await;
let sent = bob.pop_sent_msg().await;
// At this point Alice is still not part of the chat.
// The final step of Alice adding Bob to the chat
// may not work out and we don't want Bob
// to implicitly add Alice if he manages to join the group
// much later via another member.
assert_eq!(chat::get_chat_contacts(&bob, bob_chatid).await?.len(), 0);
let contact_alice_id = bob.add_or_lookup_contact_no_key(&alice).await.id;
// Check Bob emitted the JoinerProgress event.