diff --git a/modules/client/rooms/read_markers.cc b/modules/client/rooms/read_markers.cc index ee4ecdbdc..df87ee33b 100644 --- a/modules/client/rooms/read_markers.cc +++ b/modules/client/rooms/read_markers.cc @@ -27,7 +27,13 @@ post__read_markers(client &client, unquote(request["m.read"]) }; - m::receipt::read(room_id, request.user_id, m_read?: m_fully_read); + const auto &marker + { + m_read?: m_fully_read + }; + + if(marker) + m::receipt::read(room_id, request.user_id, marker); return resource::response {