Skip to content

Commit

Permalink
Not filter ChannelUserRead if counter is 0
Browse files Browse the repository at this point in the history
  • Loading branch information
JcMinarro authored and kanat committed Feb 26, 2024
1 parent 2572563 commit a7c8d6d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
<item quantity="other">%d Replies</item>
</plurals>
<plurals name="stream_compose_message_list_unread_separator">
<item quantity="zero">Unread Message</item>
<item quantity="one">%d Unread Message</item>
<item quantity="other">%d Unread Messages</item>
</plurals>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -522,8 +522,7 @@ public class MessageListController(
it.read
.filterNotNull()
.filter {
it.unreadMessages > 0 &&
it.lastReadMessageId != null &&
it.lastReadMessageId != null &&
previousUnreadMessageId?.equals(it.lastReadMessageId)?.not() ?: true
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
<item quantity="other">%d Replies</item>
</plurals>
<plurals name="stream_ui_message_list_unread_separator">
<item quantity="zero">Unread Message</item>
<item quantity="one">%d Unread Message</item>
<item quantity="other">%d Unread Messages</item>
</plurals>
Expand Down

0 comments on commit a7c8d6d

Please sign in to comment.