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

Fetch less state when we _compute_event_context_with_maybe_missing_prevs #15616

Closed
Closed
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
6 changes: 5 additions & 1 deletion synapse/state/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -514,8 +514,12 @@ async def resolve_state_groups_for_events(

room_version = await self.store.get_room_version_id(room_id)

# TODO: Use a state_filter here to only grab auth events (and maybe history visibility)?
asdf = StateFilter.from_types(
event_auth.auth_types_for_event(event.room_version, event)
)
state_to_resolve = await self._state_storage_controller.get_state_for_groups(
state_group_ids_set
state_group_ids_set, state_filter=asdf
)

result = await self._state_resolution_handler.resolve_state_groups(
Expand Down