Skip to content

Commit 6c17e43

Browse files
committed
fix: Remove avatar crashes with invalid uri
We should send an empty string there as the comment mentions. Uri.parse around it was just a typo.
1 parent c628647 commit 6c17e43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/client.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1614,7 +1614,7 @@ class Client extends MatrixApi {
16141614
await setProfileField(
16151615
userID!,
16161616
'avatar_url',
1617-
{'avatar_url': Uri.parse('')},
1617+
{'avatar_url': ''},
16181618
);
16191619
return;
16201620
}

0 commit comments

Comments
 (0)