From ebe252b24a35a74d2f2d387e4a648584bf4657ab Mon Sep 17 00:00:00 2001 From: Salvatore Giordano Date: Tue, 10 Mar 2020 13:28:58 +0100 Subject: [PATCH] hotfix --- lib/src/message_list_view.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/message_list_view.dart b/lib/src/message_list_view.dart index 3d10388b..f84a5635 100644 --- a/lib/src/message_list_view.dart +++ b/lib/src/message_list_view.dart @@ -294,7 +294,7 @@ class _MessageListViewState extends State { key: ValueKey('BOTTOM-MESSAGE'), onVisibilityChanged: (visibility) { _isBottom = visibility.visibleBounds != Rect.zero; - if (_isBottom && streamChannel.channel.config.readEvents) { + if (_isBottom && streamChannel.channel.config?.readEvents == true) { if (streamChannel.channel.state.unreadCount > 0) { streamChannel.channel.markRead(); }