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

Commit a4e9d61

Browse files
erikjohnstonH-Shay
authored andcommitted
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.
1 parent ed5cd1c commit a4e9d61

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

changelog.d/14461.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Improve performance of `/context` in large rooms.

synapse/handlers/room.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1451,7 +1451,7 @@ async def filter_evts(events: List[EventBase]) -> List[EventBase]:
14511451
events_before=events_before,
14521452
event=event,
14531453
events_after=events_after,
1454-
state=await filter_evts(state_events),
1454+
state=state_events,
14551455
aggregations=aggregations,
14561456
start=await token.copy_and_replace(
14571457
StreamKeyType.ROOM, results.start

0 commit comments

Comments
 (0)