mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-10-01 08:25:44 -04:00
By default, only room ops can change the name and topic.
This commit is contained in:
parent
cf890e9d43
commit
10e7821461
@ -133,6 +133,7 @@ class RoomCreationHandler(BaseRoomHandler):
|
|||||||
etype=RoomNameEvent.TYPE,
|
etype=RoomNameEvent.TYPE,
|
||||||
room_id=room_id,
|
room_id=room_id,
|
||||||
user_id=user_id,
|
user_id=user_id,
|
||||||
|
required_power_level=5,
|
||||||
content={"name": name},
|
content={"name": name},
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -144,6 +145,7 @@ class RoomCreationHandler(BaseRoomHandler):
|
|||||||
etype=RoomTopicEvent.TYPE,
|
etype=RoomTopicEvent.TYPE,
|
||||||
room_id=room_id,
|
room_id=room_id,
|
||||||
user_id=user_id,
|
user_id=user_id,
|
||||||
|
required_power_level=5,
|
||||||
content={"topic": topic},
|
content={"topic": topic},
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user