mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-10-01 08:25:44 -04:00
Don't put required power levels on permission state events
This commit is contained in:
parent
f452899fe2
commit
6d28560626
@ -149,6 +149,7 @@ class RoomCreationHandler(BaseRoomHandler):
|
|||||||
event_keys = {
|
event_keys = {
|
||||||
"room_id": room_id,
|
"room_id": room_id,
|
||||||
"user_id": creator.to_string(),
|
"user_id": creator.to_string(),
|
||||||
|
"required_power_level": 10,
|
||||||
}
|
}
|
||||||
|
|
||||||
def create(etype, **content):
|
def create(etype, **content):
|
||||||
@ -164,9 +165,10 @@ class RoomCreationHandler(BaseRoomHandler):
|
|||||||
default=0,
|
default=0,
|
||||||
)
|
)
|
||||||
|
|
||||||
power_levels_event = create(
|
power_levels_event = self.event_factory.create_event(
|
||||||
etype=RoomPowerLevelsEvent.TYPE,
|
etype=RoomPowerLevelsEvent.TYPE,
|
||||||
**{creator.to_string(): 10, "default": 0}
|
content={creator.to_string(): 10, "default": 0},
|
||||||
|
**event_keys
|
||||||
)
|
)
|
||||||
|
|
||||||
join_rule = JoinRules.PUBLIC if is_public else JoinRules.INVITE
|
join_rule = JoinRules.PUBLIC if is_public else JoinRules.INVITE
|
||||||
|
Loading…
Reference in New Issue
Block a user