mirror of
https://github.com/matrix-construct/construct
synced 2024-12-27 07:54:05 +01:00
modules/client/sync/rooms/state: Fix left rooms members droptimization.
This commit is contained in:
parent
947ac356d0
commit
53b54e0f62
1 changed files with 4 additions and 3 deletions
|
@ -303,9 +303,10 @@ ircd::m::sync::room_state_polylog_events(data &data)
|
|||
|
||||
// For crazyloading, skip membership events in rooms the user is not
|
||||
// presently joined.
|
||||
if(!crazyload_historical_members && !data.args->full_state && data.phased)
|
||||
if(data.membership != "join" && type == "m.room.member")
|
||||
return true;
|
||||
if(!crazyload_historical_members)
|
||||
if(!data.args->full_state && type == "m.room.member")
|
||||
if(data.membership == "leave" || data.membership == "ban")
|
||||
return true;
|
||||
|
||||
this_ctx::interruption_point();
|
||||
concurrent(event_idx);
|
||||
|
|
Loading…
Reference in a new issue