0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2025-01-15 17:16:49 +01:00

modules/client/sync/rooms/state: Hoist conditional branch to polylog phased.

This commit is contained in:
Jason Volk 2020-04-28 03:29:50 -07:00
parent c4149eba47
commit ed807ce423

View file

@ -243,6 +243,9 @@ ircd::m::sync::_room_state_polylog(data &data)
if(!apropos(data, data.room_head)) if(!apropos(data, data.room_head))
return false; return false;
if(data.phased && data.range.first == 0)
return room_state_phased_events(data);
return room_state_polylog_events(data); return room_state_polylog_events(data);
} }
@ -264,9 +267,6 @@ ircd::m::sync::crazyload_historical_members
bool bool
ircd::m::sync::room_state_polylog_events(data &data) 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}; bool ret{false};
ctx::mutex mutex; ctx::mutex mutex;
json::stack::array array json::stack::array array