mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-05 12:44:27 -04:00
Add type hints to the room member handler. (#9631)
This commit is contained in:
parent
27d2820c33
commit
b449af0379
5 changed files with 17 additions and 6 deletions
|
@ -437,10 +437,10 @@ class RegistrationHandler(BaseHandler):
|
|||
|
||||
if RoomAlias.is_valid(r):
|
||||
(
|
||||
room_id,
|
||||
room,
|
||||
remote_room_hosts,
|
||||
) = await room_member_handler.lookup_room_alias(room_alias)
|
||||
room_id = room_id.to_string()
|
||||
room_id = room.to_string()
|
||||
else:
|
||||
raise SynapseError(
|
||||
400, "%s was not legal room ID or room alias" % (r,)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue