diff options
author | Eric Eastwood <contact@ericeastwood.com> | 2023-05-19 13:36:41 -0500 |
---|---|---|
committer | Eric Eastwood <contact@ericeastwood.com> | 2023-05-19 13:36:41 -0500 |
commit | 3033e9db7d6ffd1be55b9d40439e354c0a166d9b (patch) | |
tree | 4841249fdc52c67271ada419f77383613c12288b | |
parent | Merge branch 'develop' into madlitlemods/can-we-work-with-less-state (diff) | |
download | synapse-madlitlemods/can-we-work-with-less-state.tar.xz |
in the middle of playing with state filters github/madlitlemods/can-we-work-with-less-state madlitlemods/can-we-work-with-less-state
-rw-r--r-- | synapse/state/__init__.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/synapse/state/__init__.py b/synapse/state/__init__.py index 03352bcdff..50f859e746 100644 --- a/synapse/state/__init__.py +++ b/synapse/state/__init__.py @@ -514,9 +514,12 @@ class StateHandler: 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( |