aboutsummaryrefslogtreecommitdiff
path: root/room.h
diff options
context:
space:
mode:
Diffstat (limited to 'room.h')
-rw-r--r--room.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/room.h b/room.h
index 704fdf00..315e4016 100644
--- a/room.h
+++ b/room.h
@@ -128,6 +128,8 @@ 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();
@@ -183,6 +185,8 @@ namespace QMatrixClient
void addNewMessageEvents(Events events);
void addHistoricalMessageEvents(Events events);
+
+ void markMessagesAsRead(rev_iter_t upToMarker);
};
class MemberSorter