From d304c3565c112c9c79130aa7b35fc6002c82a335 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Sun, 15 Nov 2020 00:55:25 +0100 Subject: [PATCH] resolve_room_alias was broken --- corres2math/matrix.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/corres2math/matrix.py b/corres2math/matrix.py index d01e44f..a6265a9 100644 --- a/corres2math/matrix.py +++ b/corres2math/matrix.py @@ -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