summary refs log tree commit diff
diff options
context:
space:
mode:
authorEric Eastwood <contact@ericeastwood.com>2023-05-19 13:36:41 -0500
committerEric Eastwood <contact@ericeastwood.com>2023-05-19 13:36:41 -0500
commit3033e9db7d6ffd1be55b9d40439e354c0a166d9b (patch)
tree4841249fdc52c67271ada419f77383613c12288b
parentMerge branch 'develop' into madlitlemods/can-we-work-with-less-state (diff)
downloadsynapse-github/madlitlemods/can-we-work-with-less-state.tar.xz
-rw-r--r--synapse/state/__init__.py7
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(