mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 18:22:50 +01:00
modules/client/rooms/read_markers: Condition on non-empty marker.
This commit is contained in:
parent
2ea245bf58
commit
bd29dec087
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue