This commit is contained in:
Salvatore Giordano
2020-03-10 13:28:58 +01:00
parent 9be4d206de
commit ebe252b24a
+1 -1
View File
@@ -294,7 +294,7 @@ class _MessageListViewState extends State<MessageListView> {
key: ValueKey<String>('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();
}