diff options
author | Black Hat <bhat@encom.eu.org> | 2018-08-30 22:11:23 +0800 |
---|---|---|
committer | Black Hat <bhat@encom.eu.org> | 2018-08-30 22:11:23 +0800 |
commit | 79f338877dec3de5ec7394f190025395877cb00b (patch) | |
tree | 916b7ec026131ceb2f96c201f524004c73877b3d /lib | |
parent | dd84d4876fb201fb2cdf6149340d5a0da06dcafb (diff) | |
download | libquotient-79f338877dec3de5ec7394f190025395877cb00b.tar.gz libquotient-79f338877dec3de5ec7394f190025395877cb00b.zip |
Add signal for read receipt.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/room.cpp | 1 | ||||
-rw-r--r-- | lib/room.h | 1 |
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) @@ -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); |