summary refs log tree commit diff
path: root/synapse/handlers
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2016-03-01 17:45:24 +0000
committerRichard van der Hoff <richard@matrix.org>2016-03-01 17:45:24 +0000
commit05ea111c47efaec7f24cbe4c9bfae972d4b1f87f (patch)
tree610325df80a0be07ee347cc85bf97ebfe06993f0 /synapse/handlers
parentHandle rejections of invites from local users locally (diff)
downloadsynapse-05ea111c47efaec7f24cbe4c9bfae972d4b1f87f.tar.xz
Fix pyflakes warning
Diffstat (limited to 'synapse/handlers')
-rw-r--r--synapse/handlers/_base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/_base.py b/synapse/handlers/_base.py
index 51bd1ee4de..c1f40a4ec0 100644
--- a/synapse/handlers/_base.py
+++ b/synapse/handlers/_base.py
@@ -215,7 +215,7 @@ class BaseHandler(object):
             #
             context_events = (e.event_id for e in context.current_state.values())
 
-            if prev_member_event and not prev_member_event.event_id in context_events:
+            if prev_member_event and prev_member_event.event_id not in context_events:
                 # The prev_member_event is missing from context, so it must
                 # have arrived over federation and is an outlier. We forcibly
                 # set our context to the invite we received over federation