Merge pull request #780 from GetStream/fix/indicator

fix(llc): unread indicator
This commit is contained in:
Salvatore Giordano
2021-11-23 10:27:57 +01:00
committed by GitHub
2 changed files with 5 additions and 1 deletions
+1
View File
@@ -7,6 +7,7 @@
🐞 Fixed
- `closeConnection()` now uses `normalClosure` status when closing websocket.
- Fixed local unread count indicator increasing for thread replies
## 3.2.0
@@ -1860,10 +1860,13 @@ class ChannelClientState {
(m) => m.user.id == message.user?.id,
) !=
null;
final isThreadMessage = message.parentId != null;
return !message.silent &&
!message.shadowed &&
message.user?.id != userId &&
!userIsMuted;
!userIsMuted &&
!isThreadMessage;
}
/// Update threads with updated information about messages.