Resultify Contact::block

This commit is contained in:
link2xt
2021-06-13 01:33:54 +03:00
parent b16785bb62
commit ad7c7e90b3
5 changed files with 62 additions and 50 deletions

View File

@@ -3018,7 +3018,9 @@ mod tests {
assert_eq!(msgs.len(), 0);
// Unblock contact and check if the next message arrives in real chat
Contact::unblock(&t, *blocked.first().unwrap()).await;
Contact::unblock(&t, *blocked.first().unwrap())
.await
.unwrap();
let blocked = Contact::get_all_blocked(&t).await.unwrap();
assert_eq!(blocked.len(), 0);