From 749d0f05bc16fc8f31bb4fd409408b78e1c5ad56 Mon Sep 17 00:00:00 2001 From: OfficialDakari Date: Sat, 7 Jun 2025 12:39:17 +0500 Subject: [PATCH] fix well known not fetched --- lib/src/client.dart | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/src/client.dart b/lib/src/client.dart index 7c1878ff..549c62b7 100644 --- a/lib/src/client.dart +++ b/lib/src/client.dart @@ -585,9 +585,8 @@ class Client extends MatrixApi { /// The result of this call is stored in [wellKnown] for later use at runtime. @override Future getWellknown() async { - Logs().v(userID!); final wellKnownResponse = await httpClient.get( - Uri.https(userID!.domain!, '/.well-known/matrix/client'), + Uri.https(homeserver.toString(), '/.well-known/matrix/client'), ); final wellKnown = DiscoveryInformation.fromJson( jsonDecode(utf8.decode(wellKnownResponse.bodyBytes))