fix: Room.requestUser sometimes throws an error
This commit is contained in:
parent
99d536b14f
commit
aa9940fdbc
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue