mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-17 03:14:28 -05:00
Cleanup event auth type initialisation (#5975)
Very small code cleanup.
This commit is contained in:
parent
6e834e94fc
commit
b09d443632
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 New Issue
Block a user