Merge pull request #1566 from GetStream/fix/channel-list-tile-unread-count

This commit is contained in:
Sahil Kumar
2023-05-23 16:41:56 +05:30
committed by GitHub
2 changed files with 3 additions and 2 deletions
@@ -14,6 +14,8 @@
used in `MessageActionsModal.editMessage` option.
- [[#1544]](https://github.com/GetStream/stream-chat-flutter/issues/1544) Fixed error thrown when unable to fetch
image/data in Message link preview.
- [[#1482]](https://github.com/GetStream/stream-chat-flutter/issues/1482) Fixed `StreaChannelListTile` not showing
unread indicator when `currentUser` is not present in the initial member list.
✅ Added
@@ -196,8 +196,7 @@ class StreamChannelListTile extends StatelessWidget {
initialData: channelState.members,
comparator: const ListEquality().equals,
builder: (context, members) {
if (members.isEmpty ||
!members.any((it) => it.user!.id == currentUser.id)) {
if (members.isEmpty) {
return const Offstage();
}
return unreadIndicatorBuilder?.call(context) ??