fixed can_send() for users not in group

This commit is contained in:
hendrik
2021-07-14 23:10:58 +02:00
parent 308403ad99
commit a5065c21af
3 changed files with 41 additions and 10 deletions

View File

@@ -2883,7 +2883,7 @@ mod tests {
let chat = chat::Chat::load_from_db(&t.ctx, chat_id).await.unwrap();
assert!(chat.is_mailing_list());
assert_eq!(chat.can_send(), false);
assert_eq!(chat.can_send(&t.ctx).await, false);
assert_eq!(chat.name, "deltachat/deltachat-core-rust");
assert_eq!(
chat::get_chat_contacts(&t.ctx, chat_id)