diff --git a/lib/src/room.dart b/lib/src/room.dart index 8f528e5..3e2168c 100644 --- a/lib/src/room.dart +++ b/lib/src/room.dart @@ -1117,7 +1117,7 @@ class Room { final profile = await client.requestProfile(mxID); resp = { 'displayname': profile.displayname, - 'avatar_url': profile.avatarUrl, + 'avatar_url': profile.avatarUrl.toString(), }; } catch (exception) { _requestingMatrixIds.remove(mxID);