diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-03-05 10:25:46 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-03-05 18:36:52 +0900 |
commit | e8b6e90feedd4aec3e255984da8952ef716c68db (patch) | |
tree | 50881a232ef2dd8ec4fbb4574c565d2110dad7ae /room.cpp | |
parent | 1c5b7f8a1c6d82a612f4a2a74eeb644a40370ca5 (diff) | |
download | libquotient-e8b6e90feedd4aec3e255984da8952ef716c68db.tar.gz libquotient-e8b6e90feedd4aec3e255984da8952ef716c68db.zip |
First pieces of server-side read marker support
Diffstat (limited to 'room.cpp')
-rw-r--r-- | room.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -402,8 +402,9 @@ void Room::Private::markMessagesAsRead(Room::rev_iter_t upToMarker) { if ((*markers.second)->senderId() != q->localUser()->id()) { - connection->callApi<PostReceiptJob>( - id, "m.read", (*markers.second)->id()); + auto eventId = (*markers.second)->id(); + connection->callApi<PostReceiptJob>(id, "m.read", eventId); + setAccountData(ReadMarkerEvent(eventId)); break; } } |