diff options
author | Roman Plášil <me@rplasil.name> | 2017-05-09 16:31:09 +0800 |
---|---|---|
committer | Roman Plášil <me@rplasil.name> | 2017-06-07 10:17:47 +0800 |
commit | 3913d0b7d0a809293e20766d61b15fcda82598f5 (patch) | |
tree | 89e0377a2f2135be638cd60662d46936ca7f6d3e | |
parent | 4e762cba7f03aa9074f8575892831d2498175553 (diff) | |
download | libquotient-3913d0b7d0a809293e20766d61b15fcda82598f5.tar.gz libquotient-3913d0b7d0a809293e20766d61b15fcda82598f5.zip |
Make markAllMessagesAsRead() Q_INVOKABLE
-rw-r--r-- | room.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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); |