chat adjustments
This commit is contained in:
1 parent
5532a7ce06
commit
6ac21ccf4c
5 files changed
+246
-44
No files matched your search
@@ -587,10 +587,14 @@ async fn delivery_and_read_receipts() {
|
||||
vec![Status::Delivered, Status::Delivered]
|
||||
);
|
||||
|
||||
let summary = bob.conversation_summary("alice").unwrap();
|
||||
assert_eq!(summary.unread, 2);
|
||||
assert!(matches!(summary.last.unwrap().content, meow_client::Content::Text(ref t) if t == "two"));
|
||||
// Bob reads.
|
||||
assert_eq!(bob.mark_read("alice").await.unwrap(), 2);
|
||||
assert_eq!(bob.mark_read("alice").await.unwrap(), 0);
|
||||
assert_eq!(statuses(&bob, "alice", false), vec![Status::Read, Status::Read]);
|
||||
assert_eq!(bob.conversation_summary("alice").unwrap().unread, 0);
|
||||
let ev = alice.sync(Duration::ZERO).await.unwrap();
|
||||
assert_eq!(
|
||||
ev,
|
||||
|
||||
Reference in new issue
Block a user