From 721b30ef7eb3bcdc575780e188d1316a32c9ac26 Mon Sep 17 00:00:00 2001 From: Salvatore Giordano Date: Wed, 17 Mar 2021 10:20:09 +0100 Subject: [PATCH 1/2] fix: unread count not updating while the chat is open --- packages/stream_chat_flutter/lib/src/message_list_view.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/stream_chat_flutter/lib/src/message_list_view.dart b/packages/stream_chat_flutter/lib/src/message_list_view.dart index 6c5199b58..5b1c3a994 100644 --- a/packages/stream_chat_flutter/lib/src/message_list_view.dart +++ b/packages/stream_chat_flutter/lib/src/message_list_view.dart @@ -749,7 +749,7 @@ class _MessageListViewState extends State { Widget messageWidget; if (widget.messageBuilder != null) { messageWidget = Builder( - key: ValueKey('BOTTOM-MESSAGE'), + key: ValueKey('BOTTOM-MESSAGE-${message.id}'), builder: (_) => widget.messageBuilder( context, MessageDetails( @@ -766,7 +766,7 @@ class _MessageListViewState extends State { } return VisibilityDetector( - key: ValueKey('BOTTOM-MESSAGE'), + key: ValueKey('BOTTOM-MESSAGE-${message.id}'), onVisibilityChanged: (visibility) { final isVisible = visibility.visibleBounds != Rect.zero; if (isVisible) { From 89e91a09a8519096ea54e99ab0460fcc2ab46205 Mon Sep 17 00:00:00 2001 From: Salvatore Giordano Date: Wed, 17 Mar 2021 10:21:24 +0100 Subject: [PATCH 2/2] bump version --- packages/stream_chat_flutter/CHANGELOG.md | 4 ++++ packages/stream_chat_flutter/pubspec.yaml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/stream_chat_flutter/CHANGELOG.md b/packages/stream_chat_flutter/CHANGELOG.md index 6faf9d77f..ff336e8dc 100644 --- a/packages/stream_chat_flutter/CHANGELOG.md +++ b/packages/stream_chat_flutter/CHANGELOG.md @@ -1,3 +1,7 @@ +## 1.5.1 + +- Fixed unread count not updating while the chat is open + ## 1.5.0 - Fixed swipeable visible on navigation back diff --git a/packages/stream_chat_flutter/pubspec.yaml b/packages/stream_chat_flutter/pubspec.yaml index 24f83efed..b17073d8c 100644 --- a/packages/stream_chat_flutter/pubspec.yaml +++ b/packages/stream_chat_flutter/pubspec.yaml @@ -1,7 +1,7 @@ name: stream_chat_flutter homepage: https://github.com/GetStream/stream-chat-flutter description: Stream Chat official Flutter SDK. Build your own chat experience using Dart and Flutter. -version: 1.5.0 +version: 1.5.1 repository: https://github.com/GetStream/stream-chat-flutter issue_tracker: https://github.com/GetStream/stream-chat-flutter/issues