mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-24 15:29:24 -05:00
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
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 New Issue
Block a user