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

@@ -84,6 +84,11 @@ public:
*/
[[nodiscard]] bool isChild(const QString &roomId) const;
/**
* @brief Return whether the given space has unread messages.
*/
bool spaceHasUnreadMessages(const QString &spaceId);
NeoChatConnection *connection() const;
void setConnection(NeoChatConnection *connection);
@@ -95,6 +100,8 @@ public:
bool recommendedSpaceHidden() const;
void setRecommendedSpaceHidden(bool hidden);
void markAllChildrenMessagesAsRead(const QString &spaceId);
Q_SIGNALS:
void spaceHierarchyChanged();
void connectionChanged();