mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-29 07:28:55 +03:00
Cleanup event auth type initialisation (#5975)
Very small code cleanup.
This commit is contained in:
parent
6e834e94fc
commit
b09d443632
2 changed files with 6 additions and 5 deletions
1
changelog.d/5975.misc
Normal file
1
changelog.d/5975.misc
Normal file
|
@ -0,0 +1 @@
|
|||
Cleanup event auth type initialisation.
|
|
@ -637,11 +637,11 @@ def auth_types_for_event(event):
|
|||
if event.type == EventTypes.Create:
|
||||
return []
|
||||
|
||||
auth_types = []
|
||||
|
||||
auth_types.append((EventTypes.PowerLevels, ""))
|
||||
auth_types.append((EventTypes.Member, event.sender))
|
||||
auth_types.append((EventTypes.Create, ""))
|
||||
auth_types = [
|
||||
(EventTypes.PowerLevels, ""),
|
||||
(EventTypes.Member, event.sender),
|
||||
(EventTypes.Create, ""),
|
||||
]
|
||||
|
||||
if event.type == EventTypes.Member:
|
||||
membership = event.content["membership"]
|
||||
|
|
Loading…
Reference in a new issue