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

View file

@ -1117,7 +1117,7 @@ class Room {
final profile = await client.requestProfile(mxID); final profile = await client.requestProfile(mxID);
resp = { resp = {
'displayname': profile.displayname, 'displayname': profile.displayname,
'avatar_url': profile.avatarUrl, 'avatar_url': profile.avatarUrl.toString(),
}; };
} catch (exception) { } catch (exception) {
_requestingMatrixIds.remove(mxID); _requestingMatrixIds.remove(mxID);