Skip to content

Commit

Permalink
Merge pull request #23 from jeremiah-k/main
Browse files Browse the repository at this point in the history
Revert alias changes for now
  • Loading branch information
jeremiah-k authored Apr 28, 2023
2 parents 4c98c57 + fd7dd53 commit bdaf0e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions matrix_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ async def join_matrix_room(matrix_client, room_id_or_alias: str) -> None:
"""Join a Matrix room by its ID or alias."""
try:
if room_id_or_alias.startswith("#"):
response = await matrix_client.room_resolve_alias(room_id_or_alias)
response = await matrix_client.resolve_room_alias(room_id_or_alias)
if not response.room_id:
logger.error(
f"Failed to resolve room alias '{room_id_or_alias}': {response.message}"
Expand All @@ -63,7 +63,7 @@ async def join_matrix_room(matrix_client, room_id_or_alias: str) -> None:
room_id = room_id_or_alias

if room_id not in matrix_client.rooms:
response = await matrix_client.join(room_id_or_alias)
response = await matrix_client.join(room_id)
if response and hasattr(response, "room_id"):
logger.info(f"Joined room '{room_id_or_alias}' successfully")
else:
Expand Down

0 comments on commit bdaf0e8

Please sign in to comment.