From 7340ba9ac15202b065c121f43b9f7b5e1cf0b5f3 Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Wed, 7 Mar 2018 19:04:11 +0900 Subject: Fix resetting the read marker if a read receipt comes from the sync Closes #184. --- room.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/room.cpp b/room.cpp index 5fffec19..51fe83ec 100644 --- a/room.cpp +++ b/room.cpp @@ -1477,6 +1477,8 @@ void Room::processEphemeralEvent(EventPtr event) { for( const Receipt& r: p.receipts ) { + if (r.userId == connection()->userId()) + continue; // FIXME, #185 auto u = user(r.userId); if (memberJoinState(u) == JoinState::Join) d->promoteReadMarker(u, newMarker); @@ -1491,6 +1493,8 @@ void Room::processEphemeralEvent(EventPtr event) // Otherwise, blindly store the event id for this user. for( const Receipt& r: p.receipts ) { + if (r.userId == connection()->userId()) + continue; // FIXME, #185 auto u = user(r.userId); if (memberJoinState(u) == JoinState::Join && readMarker(u) == timelineEdge()) -- cgit v1.2.3