We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04568f5 commit ea7e5f2Copy full SHA for ea7e5f2
crates/restsend/Cargo.toml
@@ -1,6 +1,6 @@
1
[package]
2
name = "restsend-sdk"
3
-version = "1.0.9"
+version = "1.1.1"
4
edition = "2021"
5
6
[lib]
crates/restsend/src/client/conversation.rs
@@ -466,11 +466,11 @@ impl Client {
466
}
467
468
for c in lr.items.iter() {
469
- if c.is_countable && conversation.last_read_seq < c.seq {
+ if c.is_countable && c.seq > conversation.last_read_seq {
470
conversation.unread += 1;
471
472
473
- if c.seq > conversation.last_seq && c.is_countable {
+ if c.is_countable && c.seq > conversation.last_seq {
474
conversation.last_seq = c.seq;
475
conversation.updated_at = c.created_at.clone();
476
conversation.last_message_at = c.created_at.clone();
0 commit comments