mirror of
https://github.com/chatmail/core.git
synced 2026-04-27 18:36:30 +03:00
extend forward-test by broadcasts (#2722)
This commit is contained in:
@@ -4287,7 +4287,9 @@ mod tests {
|
||||
let single_id = ChatId::create_for_contact(&bob, claire_id).await?;
|
||||
let group_id = create_group_chat(&bob, ProtectionStatus::Unprotected, "group2").await?;
|
||||
add_contact_to_chat(&bob, group_id, claire_id).await?;
|
||||
for chat_id in &[single_id, group_id] {
|
||||
let broadcast_id = create_broadcast_list(&bob).await?;
|
||||
add_contact_to_chat(&bob, broadcast_id, claire_id).await?;
|
||||
for chat_id in &[single_id, group_id, broadcast_id] {
|
||||
forward_msgs(&bob, &[orig_msg.id], *chat_id).await?;
|
||||
let sent_msg = bob.pop_sent_msg().await;
|
||||
assert!(sent_msg
|
||||
|
||||
Reference in New Issue
Block a user