aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBlack Hat <bhat@encom.eu.org>2018-08-30 22:11:23 +0800
committerBlack Hat <bhat@encom.eu.org>2018-08-30 22:11:23 +0800
commit79f338877dec3de5ec7394f190025395877cb00b (patch)
tree916b7ec026131ceb2f96c201f524004c73877b3d /lib
parentdd84d4876fb201fb2cdf6149340d5a0da06dcafb (diff)
downloadlibquotient-79f338877dec3de5ec7394f190025395877cb00b.tar.gz
libquotient-79f338877dec3de5ec7394f190025395877cb00b.zip
Add signal for read receipt.
Diffstat (limited to 'lib')
-rw-r--r--lib/room.cpp1
-rw-r--r--lib/room.h1
2 files changed, 2 insertions, 0 deletions
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);