fix well known not fetched

This commit is contained in:
OfficialDakari 2025-06-07 12:39:17 +05:00
parent c9aeed9057
commit 749d0f05bc
1 changed files with 1 additions and 2 deletions

View File

@ -585,9 +585,8 @@ class Client extends MatrixApi {
/// The result of this call is stored in [wellKnown] for later use at runtime.
@override
Future<DiscoveryInformation> 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))