aboutsummaryrefslogtreecommitdiff
path: root/room.h
diff options
context:
space:
mode:
Diffstat (limited to 'room.h')
-rw-r--r--room.h17
1 files changed, 15 insertions, 2 deletions
diff --git a/room.h b/room.h
index 3727af0e..049efeb6 100644
--- a/room.h
+++ b/room.h
@@ -69,9 +69,22 @@ namespace QMatrixClient
Q_INVOKABLE void updateData(SyncRoomData& data );
Q_INVOKABLE void setJoinState( JoinState state );
- Q_INVOKABLE void setLastReadEvent(User* user, QString eventId);
- Q_INVOKABLE void markMessageAsRead( Event* event );
Q_INVOKABLE QString lastReadEvent(User* user);
+ Q_INVOKABLE void setLastReadEvent(User* user, QString eventId);
+ /**
+ * @brief Mark the message at the iterator as read
+ *
+ * Marks the message at the iterator as read; also posts a read
+ * receipt to the server either for this message or, if it's from
+ * the local user, for the nearest non-local message before.
+ */
+ Q_INVOKABLE void markMessagesAsRead(Timeline::const_iterator iter);
+ /**
+ * @brief Mark the most recent message in the timeline as read
+ *
+ * This effectively marks everything in the room as read.
+ */
+ Q_INVOKABLE void markMessagesAsRead();
Q_INVOKABLE int notificationCount() const;
Q_INVOKABLE void resetNotificationCount();