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:
parent
434916bb7e
commit
b49927de38
1 changed files with 10 additions and 10 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue