From 1946603be6095fd6534d34ba03f5a91b0f40b696 Mon Sep 17 00:00:00 2001 From: link2xt Date: Fri, 7 Nov 2025 17:52:11 +0000 Subject: [PATCH] test: at the end of securejoin Bob has two members in a group chat --- src/securejoin/securejoin_tests.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/securejoin/securejoin_tests.rs b/src/securejoin/securejoin_tests.rs index f17771fd2..709e8eb49 100644 --- a/src/securejoin/securejoin_tests.rs +++ b/src/securejoin/securejoin_tests.rs @@ -605,6 +605,10 @@ async fn test_secure_join() -> Result<()> { let bob_chat = Chat::load_from_db(&bob.ctx, bob_chatid).await?; assert!(bob_chat.typ == Chattype::Group); + // At the end of the protocol + // Bob should have two members in the chat. + assert_eq!(chat::get_chat_contacts(&bob, bob_chatid).await?.len(), 2); + // On this "happy path", Alice and Bob get only a group-chat where all information are added to. // The one-to-one chats are used internally for the hidden handshake messages, // however, should not be visible in the UIs.