aboutsummaryrefslogtreecommitdiff
path: root/lib/room.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/room.cpp')
-rw-r--r--lib/room.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/room.cpp b/lib/room.cpp
index ec0ab379..c9a1856f 100644
--- a/lib/room.cpp
+++ b/lib/room.cpp
@@ -793,7 +793,11 @@ void Room::Private::markMessagesAsRead(const rev_iter_t &upToMarker)
{
if (upToMarker < q->readMarker()) {
setFullyReadMarker((*upToMarker)->id());
+ // Assuming that if a read receipt was sent on a newer event, it will
+ // stay there instead of "un-reading" notifications/mentions from
+ // m.fully_read to m.read
connection->callApi<SetReadMarkerJob>(BackgroundRequest, id,
+ fullyReadUntilEventId,
fullyReadUntilEventId);
}
}