mirror of
https://github.com/chatmail/core.git
synced 2026-05-09 01:46:30 +03:00
test: encrypt test_subject_in_group()
This commit is contained in:
@@ -340,11 +340,12 @@ async fn test_subject_in_group() -> Result<()> {
|
|||||||
|
|
||||||
// 6. Test that in a group, replies also take the quoted message's subject, while non-replies use the group title as subject
|
// 6. Test that in a group, replies also take the quoted message's subject, while non-replies use the group title as subject
|
||||||
let t = TestContext::new_alice().await;
|
let t = TestContext::new_alice().await;
|
||||||
|
let bob = TestContext::new_bob().await;
|
||||||
let group_id = chat::create_group_chat(&t, chat::ProtectionStatus::Unprotected, "groupname") // TODO encodings, ä
|
let group_id = chat::create_group_chat(&t, chat::ProtectionStatus::Unprotected, "groupname") // TODO encodings, ä
|
||||||
.await
|
.await
|
||||||
.unwrap();
|
.unwrap();
|
||||||
let bob = Contact::create(&t, "", "bob@example.org").await?;
|
let bob_contact_id = t.add_or_lookup_contact_id(&bob).await;
|
||||||
chat::add_contact_to_chat(&t, group_id, bob).await?;
|
chat::add_contact_to_chat(&t, group_id, bob_contact_id).await?;
|
||||||
|
|
||||||
let subject = send_msg_get_subject(&t, group_id, None).await?;
|
let subject = send_msg_get_subject(&t, group_id, None).await?;
|
||||||
assert_eq!(subject, "groupname");
|
assert_eq!(subject, "groupname");
|
||||||
|
|||||||
Reference in New Issue
Block a user