summary refs log tree commit diff
path: root/synapse/state/__init__.py
diff options
context:
space:
mode:
authorRichard van der Hoff <1389908+richvdh@users.noreply.github.com>2019-11-05 13:23:25 +0000
committerGitHub <noreply@github.com>2019-11-05 13:23:25 +0000
commit408600282774391fade9e4a6606f4967184865c0 (patch)
tree10ccb9c75e14575e44c1db9236e216267ca67723 /synapse/state/__init__.py
parentRemove the psutil dependency (#6318) (diff)
downloadsynapse-408600282774391fade9e4a6606f4967184865c0.tar.xz
Improve documentation for EventContext fields (#6319)
Diffstat (limited to 'synapse/state/__init__.py')
-rw-r--r--synapse/state/__init__.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/state/__init__.py b/synapse/state/__init__.py
index 4e91eb66fe..2c04ab1854 100644
--- a/synapse/state/__init__.py
+++ b/synapse/state/__init__.py
@@ -232,6 +232,9 @@ class StateHandler(object):
             # 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.
+
+            # FIXME: why do we populate current_state_ids? I thought the point was
+            # that we weren't supposed to have any state for outliers?
             if old_state:
                 prev_state_ids = {(s.type, s.state_key): s.event_id for s in old_state}
                 if event.is_state():