From 4732d412427db74cbc9f145338849b3ea7dbcf3c Mon Sep 17 00:00:00 2001 From: Slawek Kaplonski Date: Sat, 15 Apr 2023 14:29:46 +0200 Subject: [PATCH] Mark all messages as read on current room change When user enters to the room, all messages from that room should be already marked as ready without need to e.g. scroll up and then down to the bottom again. --- src/qml/Page/RoomPage.qml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/qml/Page/RoomPage.qml b/src/qml/Page/RoomPage.qml index 75b6e3ab4..3c38ee54b 100644 --- a/src/qml/Page/RoomPage.qml +++ b/src/qml/Page/RoomPage.qml @@ -41,6 +41,7 @@ Kirigami.ScrollablePage { } else if (page.currentRoom.isInvite) { page.currentRoom.clearInvitationNotification(); } + currentRoom.markAllMessagesAsRead(); } } @@ -51,6 +52,7 @@ Kirigami.ScrollablePage { if (!Kirigami.Settings.isMobile) { chatBox.chatBar.forceActiveFocus(); } + currentRoom.markAllMessagesAsRead(); } Connections {