Mark new messages as read when automatically scrolling down

This commit is contained in:
Sebastian Wolf 2021-02-05 21:57:22 +01:00
parent 35ed5879bc
commit 4b0f8f3166
No known key found for this signature in database
GPG key ID: CEA9522B5F38A90A

View file

@ -580,6 +580,7 @@ Page {
if (chatView.manuallyScrolledToBottom || message.sender.user_id === chatPage.myUserId) {
Debug.log("[ChatPage] Own message received or was scrolled to bottom, scrolling down to see it...");
chatView.scrollToIndex(chatView.count - 1);
viewMessageTimer.queueViewMessage(chatView.count - 1);
}
}
onUnreadCountUpdated: {