From 79f338877dec3de5ec7394f190025395877cb00b Mon Sep 17 00:00:00 2001 From: Black Hat Date: Thu, 30 Aug 2018 22:11:23 +0800 Subject: Add signal for read receipt. --- lib/room.cpp | 1 + lib/room.h | 1 + 2 files changed, 2 insertions(+) (limited to 'lib') diff --git a/lib/room.cpp b/lib/room.cpp index 90b01e6c..a22f477b 100644 --- a/lib/room.cpp +++ b/lib/room.cpp @@ -381,6 +381,7 @@ void Room::Private::setLastReadEvent(User* u, QString eventId) eventIdReadUsers.insert(eventId, u); swap(storedId, eventId); emit q->lastReadEventChanged(u); + emit q->readMarkerForUserMoved(u, eventId, storedId); if (isLocalUser(u)) { if (storedId != serverReadMarker) diff --git a/lib/room.h b/lib/room.h index aa897b88..ac29c33a 100644 --- a/lib/room.h +++ b/lib/room.h @@ -389,6 +389,7 @@ namespace QMatrixClient void lastDisplayedEventChanged(); void lastReadEventChanged(User* user); void readMarkerMoved(QString fromEventId, QString toEventId); + void readMarkerForUserMoved(User* user, QString fromEventId, QString toEventId); void unreadMessagesChanged(Room* room); void accountDataChanged(QString type); -- cgit v1.2.3