fix: Room.requestUser sometimes throws an error

This commit is contained in:
Sorunome 2020-09-10 09:37:56 +02:00
parent 99d536b14f
commit aa9940fdbc
No known key found for this signature in database
GPG Key ID: B19471D07FC9BE9C
1 changed files with 1 additions and 1 deletions

View File

@ -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);