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

Commit

Permalink
in the middle of playing with state filters
Browse files Browse the repository at this point in the history
  • Loading branch information
MadLittleMods committed May 19, 2023
1 parent 2d79f33 commit 3033e9d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions synapse/state/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -514,9 +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
# TODO: Can we use a state_filter here to only grab auth events (and maybe history visibility)?
state_group_ids_set, state_filter=asdf
)

result = await self._state_resolution_handler.resolve_state_groups(
Expand Down

0 comments on commit 3033e9d

Please sign in to comment.