aboutsummaryrefslogtreecommitdiff
path: root/room.h
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-03-26 08:06:04 -0400
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-03-26 08:06:04 -0400
commit39a8c43d96896aa1401a791b246de53794e06f65 (patch)
treeb03a8b045f0ad9560626cf7385604d4ad5f25eab /room.h
parent93dc89d9353e9f30d42528d8ffaba992f58139aa (diff)
downloadlibquotient-39a8c43d96896aa1401a791b246de53794e06f65.tar.gz
libquotient-39a8c43d96896aa1401a791b246de53794e06f65.zip
Count unread messages
Diffstat (limited to 'room.h')
-rw-r--r--room.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/room.h b/room.h
index 59566092..c153bfc3 100644
--- a/room.h
+++ b/room.h
@@ -229,7 +229,8 @@ namespace QMatrixClient
*/
void markMessagesAsRead(QString uptoEventId);
- Q_INVOKABLE bool hasUnreadMessages();
+ Q_INVOKABLE bool hasUnreadMessages() const;
+ int unreadMessagesCount() const;
Q_INVOKABLE int notificationCount() const;
Q_INVOKABLE void resetNotificationCount();