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

(cherry picked from commit b7dee707a3)

Co-authored-by: Jan Rathmann <jan.rathmann@gmx.de>
This commit is contained in:
Joshua Goins
2024-12-25 02:01:12 +00:00
parent e603664521
commit 4c43869fd4
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 {