Skip to content

Commit

Permalink
Merge pull request #340 from GetStream/hotfix/markRead
Browse files Browse the repository at this point in the history
fix: unread count not updating while the chat is open
  • Loading branch information
imtoori authored Mar 17, 2021
2 parents 64082ec + 89e91a0 commit b653ec3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions packages/stream_chat_flutter/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions packages/stream_chat_flutter/lib/src/message_list_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,7 @@ class _MessageListViewState extends State<MessageListView> {
Widget messageWidget;
if (widget.messageBuilder != null) {
messageWidget = Builder(
key: ValueKey<String>('BOTTOM-MESSAGE'),
key: ValueKey<String>('BOTTOM-MESSAGE-${message.id}'),
builder: (_) => widget.messageBuilder(
context,
MessageDetails(
Expand All @@ -766,7 +766,7 @@ class _MessageListViewState extends State<MessageListView> {
}

return VisibilityDetector(
key: ValueKey<String>('BOTTOM-MESSAGE'),
key: ValueKey<String>('BOTTOM-MESSAGE-${message.id}'),
onVisibilityChanged: (visibility) {
final isVisible = visibility.visibleBounds != Rect.zero;
if (isVisible) {
Expand Down
2 changes: 1 addition & 1 deletion packages/stream_chat_flutter/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit b653ec3

Please sign in to comment.