mirror of
https://github.com/matrix-construct/construct
synced 2025-01-14 00:34:18 +01:00
modules/client/sync/rooms/state: Hoist conditional branch to polylog phased.
This commit is contained in:
parent
c4149eba47
commit
ed807ce423
1 changed files with 3 additions and 3 deletions
|
@ -243,6 +243,9 @@ ircd::m::sync::_room_state_polylog(data &data)
|
|||
if(!apropos(data, data.room_head))
|
||||
return false;
|
||||
|
||||
if(data.phased && data.range.first == 0)
|
||||
return room_state_phased_events(data);
|
||||
|
||||
return room_state_polylog_events(data);
|
||||
}
|
||||
|
||||
|
@ -264,9 +267,6 @@ ircd::m::sync::crazyload_historical_members
|
|||
bool
|
||||
ircd::m::sync::room_state_polylog_events(data &data)
|
||||
{
|
||||
if(data.phased && data.range.first == 0)
|
||||
return room_state_phased_events(data);
|
||||
|
||||
bool ret{false};
|
||||
ctx::mutex mutex;
|
||||
json::stack::array array
|
||||
|
|
Loading…
Reference in a new issue