Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Add module API method to resolve a room alias to a room ID #13428

Prev Previous commit
Next Next commit
Document - add some spacing to the module API "lookup_room_alias" doc…
…string.
  • Loading branch information
buffless-matt committed Aug 3, 2022
commit 5ff3e02670f49e6c23de082ef1710b0e4029055c
2 changes: 2 additions & 0 deletions synapse/module_api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1460,10 +1460,12 @@ async def lookup_room_alias(self, room_alias: str) -> Tuple[str, List[str]]:

Args:
room_alias: The alias to look up.

Returns:
A tuple of:
The room ID (str).
Hosts likely to be participating in the room ([str]).

Raises:
SynapseError if room alias is invalid or could not be found.
"""
Expand Down