summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2017-01-17 14:32:53 +0000
committerErik Johnston <erik@matrix.org>2017-01-17 14:32:53 +0000
commite5d2df9c3452617e3390b2c356e11b7c49b022b1 (patch)
tree97a04594adc6fa02645bff8559e32704591f78a4 /synapse
parentCorrectly handle case of rejected events in state res (diff)
downloadsynapse-e5d2df9c3452617e3390b2c356e11b7c49b022b1.tar.xz
Use better variable name
Diffstat (limited to '')
-rw-r--r--synapse/event_auth.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/event_auth.py b/synapse/event_auth.py
index 3b7726a526..4096c606f1 100644
--- a/synapse/event_auth.py
+++ b/synapse/event_auth.py
@@ -661,13 +661,13 @@ def auth_types_for_event(event):
     auth_types.append((EventTypes.Create, "", ))
 
     if event.type == EventTypes.Member:
-        e_type = event.content["membership"]
-        if e_type in [Membership.JOIN, Membership.INVITE]:
+        membership = event.content["membership"]
+        if membership in [Membership.JOIN, Membership.INVITE]:
             auth_types.append((EventTypes.JoinRules, "", ))
 
         auth_types.append((EventTypes.Member, event.state_key, ))
 
-        if e_type == Membership.INVITE:
+        if membership == Membership.INVITE:
             if "third_party_invite" in event.content:
                 key = (
                     EventTypes.ThirdPartyInvite,