Merge pull request #1566 from GetStream/fix/channel-list-tile-unread-count
This commit is contained in:
@@ -14,6 +14,8 @@
|
|||||||
used in `MessageActionsModal.editMessage` option.
|
used in `MessageActionsModal.editMessage` option.
|
||||||
- [[#1544]](https://github.com/GetStream/stream-chat-flutter/issues/1544) Fixed error thrown when unable to fetch
|
- [[#1544]](https://github.com/GetStream/stream-chat-flutter/issues/1544) Fixed error thrown when unable to fetch
|
||||||
image/data in Message link preview.
|
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
|
✅ Added
|
||||||
|
|
||||||
|
|||||||
+1
-2
@@ -196,8 +196,7 @@ class StreamChannelListTile extends StatelessWidget {
|
|||||||
initialData: channelState.members,
|
initialData: channelState.members,
|
||||||
comparator: const ListEquality().equals,
|
comparator: const ListEquality().equals,
|
||||||
builder: (context, members) {
|
builder: (context, members) {
|
||||||
if (members.isEmpty ||
|
if (members.isEmpty) {
|
||||||
!members.any((it) => it.user!.id == currentUser.id)) {
|
|
||||||
return const Offstage();
|
return const Offstage();
|
||||||
}
|
}
|
||||||
return unreadIndicatorBuilder?.call(context) ??
|
return unreadIndicatorBuilder?.call(context) ??
|
||||||
|
|||||||
Reference in New Issue
Block a user