Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Don't filter state in /context response #14461

Merged
merged 2 commits into from
Nov 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/14461.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Improve performance of `/context` in large rooms.
2 changes: 1 addition & 1 deletion synapse/handlers/room.py
Original file line number Diff line number Diff line change
Expand Up @@ -1451,7 +1451,7 @@ async def filter_evts(events: List[EventBase]) -> List[EventBase]:
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
Expand Down