fix: show all contacts in Contact::get_all for bots (#4811)

successor of #4810
This commit is contained in:
Sebastian Klähn
2023-10-09 21:02:19 +02:00
committed by GitHub
parent 26959d5b75
commit ee279f84ad
2 changed files with 11 additions and 6 deletions

View File

@@ -2974,6 +2974,7 @@ async fn test_auto_accept_for_bots() -> Result<()> {
let msg = t.get_last_msg().await;
let chat = chat::Chat::load_from_db(&t, msg.chat_id).await?;
assert!(!chat.is_contact_request());
assert!(Contact::get_all(&t, 0, None).await?.len() == 1);
Ok(())
}