From e8b6e90feedd4aec3e255984da8952ef716c68db Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Mon, 5 Mar 2018 10:25:46 +0900 Subject: First pieces of server-side read marker support --- room.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'room.cpp') diff --git a/room.cpp b/room.cpp index cb94ddb6..4f818473 100644 --- a/room.cpp +++ b/room.cpp @@ -402,8 +402,9 @@ void Room::Private::markMessagesAsRead(Room::rev_iter_t upToMarker) { if ((*markers.second)->senderId() != q->localUser()->id()) { - connection->callApi( - id, "m.read", (*markers.second)->id()); + auto eventId = (*markers.second)->id(); + connection->callApi(id, "m.read", eventId); + setAccountData(ReadMarkerEvent(eventId)); break; } } -- cgit v1.2.3