Skip to content

Commit

Permalink
Merge pull request #843 from GetStream/unread-count-fix
Browse files Browse the repository at this point in the history
fix(llc): fixed unread count after member removed
  • Loading branch information
imtoori authored Dec 29, 2021
2 parents e0f1357 + ba63be0 commit 8ac2c36
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/stream_chat/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
✅ Added

- Added `client.enrichUrl` endpoint for enriching URLs with metadata.
- Fixed `unreadCount` after removing user from a channel.

## 3.3.1

Expand Down
1 change: 1 addition & 0 deletions packages/stream_chat/lib/src/client/channel.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1538,6 +1538,7 @@ class ChannelClientState {
members: List.from(
channelState.members..removeWhere((m) => m.userId == user!.id),
),
read: channelState.read..removeWhere((r) => r.user.id == user!.id),
));
}));
}
Expand Down

0 comments on commit 8ac2c36

Please sign in to comment.