From 296d2aa7f4a453fd22d7ae25351238a97f55fa60 Mon Sep 17 00:00:00 2001 From: link2xt Date: Wed, 12 Mar 2025 20:47:57 +0000 Subject: [PATCH] test(test_secure_join): Bob should not create a 1:1 chat before sending a message --- src/securejoin/securejoin_tests.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/securejoin/securejoin_tests.rs b/src/securejoin/securejoin_tests.rs index afc7fa118..2d94cc166 100644 --- a/src/securejoin/securejoin_tests.rs +++ b/src/securejoin/securejoin_tests.rs @@ -669,11 +669,11 @@ async fn test_secure_join() -> Result<()> { assert_eq!(Chatlist::try_load(&bob, 0, None, None).await?.len(), 1); // If Bob then sends a direct message to alice, however, the one-to-one with Alice should appear. - let bobs_chat_with_alice = bob.get_chat(&alice).await; + let bobs_chat_with_alice = bob.create_chat(&alice).await; let sent = bob.send_text(bobs_chat_with_alice.id, "Hello").await; alice.recv_msg(&sent).await; assert_eq!(Chatlist::try_load(&alice, 0, None, None).await?.len(), 2); - assert_eq!(Chatlist::try_load(&bob, 0, None, None).await?.len(), 1); + assert_eq!(Chatlist::try_load(&bob, 0, None, None).await?.len(), 2); Ok(()) }