fix markread

This commit is contained in:
Salvatore Giordano
2020-12-18 15:44:28 +01:00
parent 9665481323
commit 14aebadabf
5 changed files with 8 additions and 6 deletions
+3 -1
View File
@@ -519,11 +519,13 @@ class _MessageListViewState extends State<MessageListView> {
color: Colors.black,
),
onPressed: () {
if (unreadCount > 0) {
streamChannel.channel.markRead();
}
if (!_upToDate) {
_bottomPaginationActive = false;
_topPaginationActive = false;
streamChannel.reloadChannel();
streamChannel.channel.markRead();
} else {
setState(() => _showScrollToBottom = false);
_scrollController.scrollTo(