summary refs log tree commit diff
path: root/synapse/state.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2017-01-20 11:52:51 +0000
committerErik Johnston <erik@matrix.org>2017-01-20 11:52:51 +0000
commit09eb08f910bd4a6077cca6ab4c3068eee55d59f3 (patch)
treebb64cb5e394bdb361ac9f64216b48d9beb836e43 /synapse/state.py
parentMake worker listener config backwards compat (diff)
downloadsynapse-09eb08f910bd4a6077cca6ab4c3068eee55d59f3.tar.xz
Derive current_state_events from state groups
Diffstat (limited to 'synapse/state.py')
-rw-r--r--synapse/state.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/state.py b/synapse/state.py
index 20aaacf40f..383d32b163 100644
--- a/synapse/state.py
+++ b/synapse/state.py
@@ -429,6 +429,9 @@ def resolve_events(state_sets, state_map_factory):
         dict[(str, str), synapse.events.FrozenEvent] is a map from
         (type, state_key) to event.
     """
+    if len(state_sets) == 1:
+        return state_sets[0]
+
     unconflicted_state, conflicted_state = _seperate(
         state_sets,
     )