Skip to content

Commit c69d392

Browse files
committed
fix: unread issue
1 parent cff9314 commit c69d392

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

crates/restsend/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "restsend-sdk"
3-
version = "1.0.6"
3+
version = "1.0.7"
44
edition = "2021"
55

66
[lib]

crates/restsend/src/client/store/conversations.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ impl ClientStore {
229229
if conversation.unread == 0 {
230230
let start_seq = conversation.start_seq.max(conversation.last_read_seq);
231231
let diff = conversation.last_seq - start_seq;
232-
conversation.unread = diff.min(0);
232+
conversation.unread = diff.max(0);
233233
}
234234

235235
results.push(ValueItem {

swift/RestsendSdk.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "RestsendSdk"
3-
s.version = "1.0.6"
3+
s.version = "1.0.7"
44
s.summary = "Restsend client sdk for iOS"
55
s.homepage = "https://github.com/restsend/restsend-rs"
66
s.license = { :type => "MIT" }

0 commit comments

Comments
 (0)