mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2025-06-21 01:58:23 +02:00
Fix matrix avatar
This commit is contained in:
@ -76,7 +76,7 @@ class Matrix:
|
||||
"""
|
||||
client = await cls._get_client()
|
||||
resp = await client.get_avatar()
|
||||
return resp.avatar_url if resp.status_code == 200 else resp
|
||||
return resp.avatar_url if hasattr(resp, "avatar_url") else resp
|
||||
|
||||
@classmethod
|
||||
@async_to_sync
|
||||
|
Reference in New Issue
Block a user