summary refs log tree commit diff
path: root/synapse/state
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2022-07-18 10:05:30 +0100
committerGitHub <noreply@github.com>2022-07-18 10:05:30 +0100
commitc6a05063ff26502d126be33dd4ae2854ea88cbab (patch)
treea36f08cc6fd88f9d4813a23852049cf9061a05e9 /synapse/state
parentRemove unnecessary `json.dumps` from tests (#13303) (diff)
downloadsynapse-c6a05063ff26502d126be33dd4ae2854ea88cbab.tar.xz
Don't pull out the full state when creating an event (#13281)
Diffstat (limited to 'synapse/state')
-rw-r--r--synapse/state/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/state/__init__.py b/synapse/state/__init__.py
index fcb7e829d4..e3faa52cd6 100644
--- a/synapse/state/__init__.py
+++ b/synapse/state/__init__.py
@@ -157,6 +157,7 @@ class StateHandler:
         self,
         room_id: str,
         event_ids: Collection[str],
+        state_filter: Optional[StateFilter] = None,
     ) -> StateMap[str]:
         """Fetch the state after each of the given event IDs. Resolve them and return.
 
@@ -174,7 +175,7 @@ class StateHandler:
         """
         logger.debug("calling resolve_state_groups from compute_state_after_events")
         ret = await self.resolve_state_groups_for_events(room_id, event_ids)
-        return await ret.get_state(self._state_storage_controller, StateFilter.all())
+        return await ret.get_state(self._state_storage_controller, state_filter)
 
     async def get_current_users_in_room(
         self, room_id: str, latest_event_ids: List[str]