summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-06-03 16:43:40 +0100
committerErik Johnston <erik@matrix.org>2015-06-03 16:43:40 +0100
commit53f0bf85d7781960d61ea0d4e3f2435102ca7fb6 (patch)
tree4733441f755a36619cc8e8cafa57b9529a287dc7 /synapse
parentDon't needlessly compute context (diff)
downloadsynapse-53f0bf85d7781960d61ea0d4e3f2435102ca7fb6.tar.xz
Comment
Diffstat (limited to 'synapse')
-rw-r--r--synapse/state.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/state.py b/synapse/state.py
index c1ce46d1b2..8a635f1cc1 100644
--- a/synapse/state.py
+++ b/synapse/state.py
@@ -124,6 +124,9 @@ class StateHandler(object):
         context = EventContext()
 
         if outlier:
+            # If this is an outlier, then we know it shouldn't have any current
+            # state. Certainly store.get_current_state won't return any, and
+            # persisting the event won't store the state group.
             if old_state:
                 context.current_state = {
                     (s.type, s.state_key): s for s in old_state