mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 17:36:29 +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?;
|
let bob_chat = Chat::load_from_db(&bob.ctx, bob_chatid).await?;
|
||||||
assert!(bob_chat.typ == Chattype::Group);
|
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.
|
// 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,
|
// The one-to-one chats are used internally for the hidden handshake messages,
|
||||||
// however, should not be visible in the UIs.
|
// however, should not be visible in the UIs.
|
||||||
|
|||||||
Reference in New Issue
Block a user