Merge pull request #780 from GetStream/fix/indicator
fix(llc): unread indicator
This commit is contained in:
@@ -7,6 +7,7 @@
|
|||||||
🐞 Fixed
|
🐞 Fixed
|
||||||
|
|
||||||
- `closeConnection()` now uses `normalClosure` status when closing websocket.
|
- `closeConnection()` now uses `normalClosure` status when closing websocket.
|
||||||
|
- Fixed local unread count indicator increasing for thread replies
|
||||||
|
|
||||||
## 3.2.0
|
## 3.2.0
|
||||||
|
|
||||||
|
|||||||
@@ -1860,10 +1860,13 @@ class ChannelClientState {
|
|||||||
(m) => m.user.id == message.user?.id,
|
(m) => m.user.id == message.user?.id,
|
||||||
) !=
|
) !=
|
||||||
null;
|
null;
|
||||||
|
final isThreadMessage = message.parentId != null;
|
||||||
|
|
||||||
return !message.silent &&
|
return !message.silent &&
|
||||||
!message.shadowed &&
|
!message.shadowed &&
|
||||||
message.user?.id != userId &&
|
message.user?.id != userId &&
|
||||||
!userIsMuted;
|
!userIsMuted &&
|
||||||
|
!isThreadMessage;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Update threads with updated information about messages.
|
/// Update threads with updated information about messages.
|
||||||
|
|||||||
Reference in New Issue
Block a user