aboutsummaryrefslogtreecommitdiff
path: root/room.h
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2017-06-07 16:18:13 +0900
committerGitHub <noreply@github.com>2017-06-07 16:18:13 +0900
commit28ff47e9cc49c81c1521e4b4e8453cbf28384f44 (patch)
tree89e0377a2f2135be638cd60662d46936ca7f6d3e /room.h
parent4e762cba7f03aa9074f8575892831d2498175553 (diff)
parent3913d0b7d0a809293e20766d61b15fcda82598f5 (diff)
downloadlibquotient-28ff47e9cc49c81c1521e4b4e8453cbf28384f44.tar.gz
libquotient-28ff47e9cc49c81c1521e4b4e8453cbf28384f44.zip
Merge pull request #68 from Quiark/pull-mark-invokable
Make markAllMessagesAsRead() Q_INVOKABLE
Diffstat (limited to 'room.h')
-rw-r--r--room.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/room.h b/room.h
index a847161d..60278107 100644
--- a/room.h
+++ b/room.h
@@ -131,8 +131,6 @@ namespace QMatrixClient
* the nearest non-local message before. uptoEventId must be non-empty.
*/
void markMessagesAsRead(QString uptoEventId);
- /** Mark all messages in the room as read */
- void markAllMessagesAsRead();
Q_INVOKABLE bool hasUnreadMessages();
@@ -152,6 +150,9 @@ namespace QMatrixClient
void leaveRoom() const;
void userRenamed(User* user, QString oldName);
+ /** Mark all messages in the room as read */
+ void markAllMessagesAsRead();
+
signals:
void aboutToAddHistoricalMessages(const RoomEvents& events);
void aboutToAddNewMessages(const RoomEvents& events);