summary refs log tree commit diff
path: root/synapse/storage
diff options
context:
space:
mode:
Diffstat (limited to 'synapse/storage')
-rw-r--r--synapse/storage/state.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/synapse/storage/state.py b/synapse/storage/state.py
index 1293842361..a3fc859b06 100644
--- a/synapse/storage/state.py
+++ b/synapse/storage/state.py
@@ -385,12 +385,12 @@ class StateStore(SQLBaseStore):
 
         if not missing_groups_and_types:
             defer.returnValue({
-                k: {
-                    key: ev
-                    for key, ev in state.items()
-                    if ev
+                group: {
+                    type_tuple: event
+                    for type_tuple, event in state.items()
+                    if event
                 }
-                for k, state in results.items()
+                for group, state in results.items()
             })
 
         # Okay, so we have some missing_types, lets fetch them.