mirror of
https://mau.dev/maunium/synapse.git
synced 2024-11-04 05:38:57 +01:00
Don't set the room name to be the room alias on room creation if the client didn't supply a name
This commit is contained in:
parent
2b4736afcd
commit
72eb360f2d
1 changed files with 0 additions and 11 deletions
|
@ -145,17 +145,6 @@ class RoomCreationHandler(BaseHandler):
|
|||
content={"name": name},
|
||||
)
|
||||
|
||||
yield handle_event(name_event)
|
||||
elif room_alias:
|
||||
name = room_alias.to_string()
|
||||
name_event = self.event_factory.create_event(
|
||||
etype=RoomNameEvent.TYPE,
|
||||
room_id=room_id,
|
||||
user_id=user_id,
|
||||
required_power_level=50,
|
||||
content={"name": name},
|
||||
)
|
||||
|
||||
yield handle_event(name_event)
|
||||
|
||||
if "topic" in config:
|
||||
|
|
Loading…
Reference in a new issue