From aa9940fdbc25619e594dc984efe1a4a533950af1 Mon Sep 17 00:00:00 2001 From: Sorunome Date: Thu, 10 Sep 2020 09:37:56 +0200 Subject: [PATCH] fix: Room.requestUser sometimes throws an error --- lib/src/room.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);