From 2f0ea91020d47cf1c3ac2bf6b0c53aa9afc6ddeb Mon Sep 17 00:00:00 2001 From: Alexey Rusakov Date: Mon, 19 Jul 2021 18:21:02 +0200 Subject: Fix m.read getting stuck behind m.fully_read --- lib/room.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/room.cpp') 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(BackgroundRequest, id, + fullyReadUntilEventId, fullyReadUntilEventId); } } -- cgit v1.2.3