summary refs log tree commit diff
path: root/synapse/handlers/federation.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-01-30 11:08:52 +0000
committerErik Johnston <erik@matrix.org>2015-01-30 11:08:52 +0000
commit0c2d245fdf5f24f99138f1c60c4e6bed52cf5d5a (patch)
treed8de97c8d6fb36313049b381a3a8c6696dfaefee /synapse/handlers/federation.py
parentFix bug in timeout handling in keyclient (diff)
downloadsynapse-0c2d245fdf5f24f99138f1c60c4e6bed52cf5d5a.tar.xz
Update the current state of an event if we update auth events.
Diffstat (limited to 'synapse/handlers/federation.py')
-rw-r--r--synapse/handlers/federation.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/handlers/federation.py b/synapse/handlers/federation.py
index de47a97e6b..cc22f21cd1 100644
--- a/synapse/handlers/federation.py
+++ b/synapse/handlers/federation.py
@@ -706,7 +706,6 @@ class FederationHandler(BaseHandler):
                 event.event_id, e.msg
             )
 
-            # TODO: Store rejection.
             context.rejected = RejectedReason.AUTH_ERROR
 
             yield self.store.persist_event(
@@ -828,6 +827,9 @@ class FederationHandler(BaseHandler):
             # 4. Look at rejects and their proofs.
             # TODO.
 
+            context.current_state.update(auth_events)
+            context.state_group = None
+
         try:
             self.auth.check(event, auth_events=auth_events)
         except AuthError: