mirror of
https://gitlab.com/animath/si/plateforme-corres2math.git
synced 2024-12-05 02:06:52 +00:00
resolve_room_alias was broken
This commit is contained in:
parent
0fe1f9c348
commit
d304c3565c
@ -216,7 +216,7 @@ class Matrix:
|
|||||||
"""
|
"""
|
||||||
client = await cls._get_client()
|
client = await cls._get_client()
|
||||||
resp = await client.room_resolve_alias(room_alias)
|
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
|
@classmethod
|
||||||
@async_to_sync
|
@async_to_sync
|
||||||
|
Loading…
Reference in New Issue
Block a user