Skip to content

Commit 1946603

Browse files
committed
test: at the end of securejoin Bob has two members in a group chat
1 parent c43b622 commit 1946603

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/securejoin/securejoin_tests.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -605,6 +605,10 @@ async fn test_secure_join() -> Result<()> {
605605
let bob_chat = Chat::load_from_db(&bob.ctx, bob_chatid).await?;
606606
assert!(bob_chat.typ == Chattype::Group);
607607

608+
// At the end of the protocol
609+
// Bob should have two members in the chat.
610+
assert_eq!(chat::get_chat_contacts(&bob, bob_chatid).await?.len(), 2);
611+
608612
// On this "happy path", Alice and Bob get only a group-chat where all information are added to.
609613
// The one-to-one chats are used internally for the hidden handshake messages,
610614
// however, should not be visible in the UIs.

0 commit comments

Comments
 (0)