From 6c17e43445ed47982adeeb99a26aaaee676433c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Ku=C3=9Fowski?= Date: Wed, 15 Oct 2025 12:54:53 +0200 Subject: [PATCH] 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. --- lib/src/client.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/client.dart b/lib/src/client.dart index 57b74292..de3213eb 100644 --- a/lib/src/client.dart +++ b/lib/src/client.dart @@ -1614,7 +1614,7 @@ class Client extends MatrixApi { await setProfileField( userID!, 'avatar_url', - {'avatar_url': Uri.parse('')}, + {'avatar_url': ''}, ); return; }