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 left rooms members droptimization.

This commit is contained in:
Jason Volk 2019-08-12 01:21:05 -07:00
parent 947ac356d0
commit 53b54e0f62

View file

@ -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);