Don't filter state in /context response (#14461)
We don't filter state usually, so doing so here is a waste of time. This is not much of an issue for clients that enable lazy loading of members, since there will be fewer state events.
This commit is contained in:
parent
f844b470f6
commit
945a0928c7
|
@ -0,0 +1 @@
|
|||
Improve performance of `/context` in large rooms.
|
|
@ -1451,7 +1451,7 @@ class RoomContextHandler:
|
|||
events_before=events_before,
|
||||
event=event,
|
||||
events_after=events_after,
|
||||
state=await filter_evts(state_events),
|
||||
state=state_events,
|
||||
aggregations=aggregations,
|
||||
start=await token.copy_and_replace(
|
||||
StreamKeyType.ROOM, results.start
|
||||
|
|
Loading…
Reference in New Issue