summary refs log tree commit diff
path: root/synapse/state.py
diff options
context:
space:
mode:
authorRichard van der Hoff <github@rvanderhoff.org.uk>2017-03-20 11:21:01 +0000
committerGitHub <noreply@github.com>2017-03-20 11:21:01 +0000
commit2e05f5d7a4d713be3ba950672c26e6d5e3ab031f (patch)
tree9beddc25115cb9931933727b1ea6d7205999ce72 /synapse/state.py
parentMerge pull request #2016 from matrix-org/rav/queue_pdus_during_join (diff)
parentAvoid resetting state on rejected events (diff)
downloadsynapse-2e05f5d7a4d713be3ba950672c26e6d5e3ab031f.tar.xz
Merge pull request #2025 from matrix-org/rav/no_reset_state_on_rejections
Avoid resetting state on rejected events
Diffstat (limited to 'synapse/state.py')
-rw-r--r--synapse/state.py11
1 files changed, 3 insertions, 8 deletions
diff --git a/synapse/state.py b/synapse/state.py
index 383d32b163..9a523a1b89 100644
--- a/synapse/state.py
+++ b/synapse/state.py
@@ -177,17 +177,12 @@ class StateHandler(object):
 
     @defer.inlineCallbacks
     def compute_event_context(self, event, old_state=None):
-        """ Fills out the context with the `current state` of the graph. The
-        `current state` here is defined to be the state of the event graph
-        just before the event - i.e. it never includes `event`
-
-        If `event` has `auth_events` then this will also fill out the
-        `auth_events` field on `context` from the `current_state`.
+        """Build an EventContext structure for the event.
 
         Args:
-            event (EventBase)
+            event (synapse.events.EventBase):
         Returns:
-            an EventContext
+            synapse.events.snapshot.EventContext:
         """
         context = EventContext()