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:
Erik Johnston 2022-11-16 12:09:33 +00:00 committed by GitHub
parent f844b470f6
commit 945a0928c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

1
changelog.d/14461.misc Normal file
View File

@ -0,0 +1 @@
Improve performance of `/context` in large rooms.

View File

@ -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