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.
This commit is contained in:
Slawek Kaplonski
2023-04-15 14:29:46 +02:00
parent 516b1cff88
commit 4732d41242

View File

@@ -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 {