Port away from methods removed in libquotient. This fixes BUG: 497458

This commit is contained in:
Jan Rathmann
2024-12-23 16:10:41 +00:00
committed by Joshua Goins
parent 9f2f0f1375
commit b7dee707a3
2 changed files with 4 additions and 4 deletions

View File

@@ -198,7 +198,7 @@ Kirigami.Page {
Shortcut {
sequence: StandardKey.Cancel
onActivated: {
if (!timelineViewLoader.item.atYEnd || root.currentRoom.hasUnreadMessages) {
if (!timelineViewLoader.item.atYEnd || !root.currentRoom.partiallyReadStats.empty()) {
timelineViewLoader.item.goToLastMessage();
root.currentRoom.markAllMessagesAsRead();
} else {