0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-27 07:54:05 +01:00

modules/client/sync/rooms/state: Fix placement of branch from linear to polylog.

This commit is contained in:
Jason Volk 2020-04-28 00:44:17 -07:00
parent 434916bb7e
commit b49927de38

View file

@ -126,16 +126,6 @@ ircd::m::sync::room_state_linear_events(data &data)
return false;
}
if(is_own_membership && data.membership == "join")
{
const scope_restore data_range_first
{
data.range.first, 0UL
};
return room_state_polylog_events(data);
}
json::stack::object rooms
{
*data.out, "rooms"
@ -163,6 +153,16 @@ ircd::m::sync::room_state_linear_events(data &data)
*data.out, state_member_name
};
if(is_own_membership && data.membership == "join")
{
const scope_restore data_range_first
{
data.range.first, 0UL
};
return room_state_polylog_events(data);
}
json::stack::array array
{
*data.out, "events"