mirror of
https://github.com/chatmail/core.git
synced 2026-05-04 13:56:30 +03:00
Resolve some small TODOs
This commit is contained in:
@@ -2904,8 +2904,8 @@ async fn test_broadcast_joining_golden() -> Result<()> {
|
||||
bob.golden_test_chat(bob_chat_id, "test_broadcast_joining_golden_bob")
|
||||
.await;
|
||||
|
||||
let alice_bob_contact = alice.add_or_lookup_contact_id(bob).await;
|
||||
let direct_chat = ChatIdBlocked::lookup_by_contact(alice, alice_bob_contact)
|
||||
let alice_bob_contact = alice.add_or_lookup_contact_no_key(bob).await;
|
||||
let direct_chat = ChatIdBlocked::lookup_by_contact(alice, alice_bob_contact.id)
|
||||
.await?
|
||||
.unwrap();
|
||||
// The 1:1 chat with Bob should not be visible to the user:
|
||||
@@ -2914,6 +2914,25 @@ async fn test_broadcast_joining_golden() -> Result<()> {
|
||||
.golden_test_chat(direct_chat.id, "test_broadcast_joining_golden_alice_direct")
|
||||
.await;
|
||||
|
||||
assert_eq!(
|
||||
alice_bob_contact
|
||||
.get_verifier_id(alice)
|
||||
.await?
|
||||
.unwrap()
|
||||
.unwrap(),
|
||||
ContactId::SELF
|
||||
);
|
||||
|
||||
let bob_alice_contact = bob.add_or_lookup_contact_no_key(alice).await;
|
||||
assert_eq!(
|
||||
bob_alice_contact
|
||||
.get_verifier_id(bob)
|
||||
.await?
|
||||
.unwrap()
|
||||
.unwrap(),
|
||||
ContactId::SELF
|
||||
);
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user