forked from MirrorHub/synapse
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
2 changed files with 2 additions and 1 deletions
1
changelog.d/14461.misc
Normal file
1
changelog.d/14461.misc
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Improve performance of `/context` in large rooms.
|
|
@ -1451,7 +1451,7 @@ class RoomContextHandler:
|
||||||
events_before=events_before,
|
events_before=events_before,
|
||||||
event=event,
|
event=event,
|
||||||
events_after=events_after,
|
events_after=events_after,
|
||||||
state=await filter_evts(state_events),
|
state=state_events,
|
||||||
aggregations=aggregations,
|
aggregations=aggregations,
|
||||||
start=await token.copy_and_replace(
|
start=await token.copy_and_replace(
|
||||||
StreamKeyType.ROOM, results.start
|
StreamKeyType.ROOM, results.start
|
||||||
|
|
Loading…
Reference in a new issue