mirror of
https://github.com/chatmail/core.git
synced 2026-04-19 06:26:30 +03:00
test: at the end of securejoin Bob has two members in a group chat
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user