Add a button to mark spaces as read

[BUG: 508122](https://bugs.kde.org/show_bug.cgi?id=508122)
This commit is contained in:
Azhar Momin
2026-01-24 01:59:51 +05:30
committed by Joshua Goins
parent fb8ee02e3b
commit ade5750550
5 changed files with 109 additions and 0 deletions

View File

@@ -40,6 +40,19 @@ KirigamiComponents.ConvergentContextMenu {
}
}
QQC2.Action {
text: i18nc("@action:inmenu", "Mark Space as Read")
icon.name: "checkmark"
enabled: root.room.spaceHasUnreadMessages
onTriggered: {
root.room.markAllChildrenMessagesAsRead();
}
}
Kirigami.Action {
separator: true
}
QQC2.Action {
text: i18nc("'Space' is a matrix space", "View Space")
icon.name: "view-list-details"