resultify Contact::get_all_blocked()

This commit is contained in:
B. Petersen
2021-02-23 16:55:42 +01:00
committed by bjoern
parent 01af3b7547
commit 79e72418bb
3 changed files with 16 additions and 7 deletions

View File

@@ -1103,7 +1103,7 @@ pub async fn cmdline(context: Context, line: &str, chat_id: &mut ChatId) -> Resu
Contact::unblock(&context, contact_id).await;
}
"listblocked" => {
let contacts = Contact::get_all_blocked(&context).await;
let contacts = Contact::get_all_blocked(&context).await?;
log_contactlist(&context, &contacts).await;
println!("{} blocked contacts.", contacts.len());
}