0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-01 19:22:53 +01:00

modules/client/rooms/read_markers: Condition on non-empty marker.

This commit is contained in:
Jason Volk 2018-03-16 12:47:39 -07:00
parent 2ea245bf58
commit bd29dec087

View file

@ -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
{