mirror of
https://github.com/chatmail/core.git
synced 2026-04-02 05:22:14 +03:00
Test that no notifications are displayed for blocked mailing lists
This commit is contained in:
@@ -3111,8 +3111,14 @@ Hello mailinglist!\r\n"
|
||||
let chats = Chatlist::try_load(&t.ctx, 0, None, None).await.unwrap();
|
||||
assert_eq!(chats.len(), 0); // Test that the message disappeared
|
||||
|
||||
t.evtracker.consume_events().await;
|
||||
receive_imf(&t.ctx, DC_MAILINGLIST2, false).await.unwrap();
|
||||
|
||||
// Check that no notification is displayed for blocked mailing list message.
|
||||
while let Ok(event) = t.evtracker.try_recv() {
|
||||
assert!(!matches!(event.typ, EventType::IncomingMsg { .. }));
|
||||
}
|
||||
|
||||
// Test that the mailing list stays disappeared
|
||||
let chats = Chatlist::try_load(&t.ctx, 0, None, None).await.unwrap();
|
||||
assert_eq!(chats.len(), 0); // Test that the message is not shown
|
||||
|
||||
Reference in New Issue
Block a user