summary refs log tree commit diff
path: root/synapse/storage/state.py
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2021-09-15 09:54:13 -0400
committerGitHub <noreply@github.com>2021-09-15 09:54:13 -0400
commit3eba047d388fd0d798229a0779f343dbda8a2887 (patch)
tree991e2bdf96eec08a830ae5542f3368f656c0781a /synapse/storage/state.py
parentAdd missing type hints to non-client REST servlets. (#10817) (diff)
downloadsynapse-3eba047d388fd0d798229a0779f343dbda8a2887.tar.xz
Add type hints to state database module. (#10823)
Diffstat (limited to 'synapse/storage/state.py')
-rw-r--r--synapse/storage/state.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/storage/state.py b/synapse/storage/state.py
index c76529cb57..5e86befde4 100644
--- a/synapse/storage/state.py
+++ b/synapse/storage/state.py
@@ -377,7 +377,8 @@ class StateGroupStorage:
             make up the delta between the old and new state groups.
         """
 
-        return await self.stores.state.get_state_group_delta(state_group)
+        state_group_delta = await self.stores.state.get_state_group_delta(state_group)
+        return state_group_delta.prev_group, state_group_delta.delta_ids
 
     async def get_state_groups_ids(
         self, _room_id: str, event_ids: Iterable[str]