mirror of
https://mau.dev/maunium/synapse.git
synced 2024-11-15 22:42:23 +01:00
Use better variable name
This commit is contained in:
parent
ce59a2faad
commit
e5d2df9c34
1 changed files with 3 additions and 3 deletions
|
@ -661,13 +661,13 @@ def auth_types_for_event(event):
|
||||||
auth_types.append((EventTypes.Create, "", ))
|
auth_types.append((EventTypes.Create, "", ))
|
||||||
|
|
||||||
if event.type == EventTypes.Member:
|
if event.type == EventTypes.Member:
|
||||||
e_type = event.content["membership"]
|
membership = event.content["membership"]
|
||||||
if e_type in [Membership.JOIN, Membership.INVITE]:
|
if membership in [Membership.JOIN, Membership.INVITE]:
|
||||||
auth_types.append((EventTypes.JoinRules, "", ))
|
auth_types.append((EventTypes.JoinRules, "", ))
|
||||||
|
|
||||||
auth_types.append((EventTypes.Member, event.state_key, ))
|
auth_types.append((EventTypes.Member, event.state_key, ))
|
||||||
|
|
||||||
if e_type == Membership.INVITE:
|
if membership == Membership.INVITE:
|
||||||
if "third_party_invite" in event.content:
|
if "third_party_invite" in event.content:
|
||||||
key = (
|
key = (
|
||||||
EventTypes.ThirdPartyInvite,
|
EventTypes.ThirdPartyInvite,
|
||||||
|
|
Loading…
Reference in a new issue