resolve_room_alias was broken

This commit is contained in:
Yohann D'ANELLO 2020-11-15 00:55:25 +01:00
parent 0fe1f9c348
commit d304c3565c
1 changed files with 1 additions and 1 deletions

View File

@ -216,7 +216,7 @@ class Matrix:
"""
client = await cls._get_client()
resp = await client.room_resolve_alias(room_alias)
return resp.room_id if resp else None
return resp.room_id if resp and hasattr(resp, "room_id") else None
@classmethod
@async_to_sync