mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-18 13:04:06 +01:00
emit room aliases event
This commit is contained in:
parent
5b68f29f48
commit
23b6a0537f
1 changed files with 8 additions and 3 deletions
|
@ -531,9 +531,14 @@ class RegistrationHandler(BaseHandler):
|
||||||
directory_handler = self.hs.get_handlers().directory_handler
|
directory_handler = self.hs.get_handlers().directory_handler
|
||||||
room_alias = RoomAlias.from_string(room_identifier)
|
room_alias = RoomAlias.from_string(room_identifier)
|
||||||
yield directory_handler.create_association(
|
yield directory_handler.create_association(
|
||||||
requester.user.to_string(),
|
user_id=requester.user.to_string(),
|
||||||
room_alias,
|
room_alias=room_alias,
|
||||||
room_id
|
room_id=room_id,
|
||||||
|
servers=[self.hs.hostname],
|
||||||
|
)
|
||||||
|
|
||||||
|
yield directory_handler.send_room_alias_update_event(
|
||||||
|
requester, requester.user.to_string(), room_id
|
||||||
)
|
)
|
||||||
|
|
||||||
room_id = None
|
room_id = None
|
||||||
|
|
Loading…
Reference in a new issue