fix well known not fetched again

This commit is contained in:
OfficialDakari 2025-06-07 12:42:45 +05:00
parent 749d0f05bc
commit badbc3be14
1 changed files with 1 additions and 1 deletions

View File

@ -586,7 +586,7 @@ class Client extends MatrixApi {
@override
Future<DiscoveryInformation> getWellknown() async {
final wellKnownResponse = await httpClient.get(
Uri.https(homeserver.toString(), '/.well-known/matrix/client'),
Uri.https(homeserver!.authority!, '/.well-known/matrix/client'),
);
final wellKnown = DiscoveryInformation.fromJson(
jsonDecode(utf8.decode(wellKnownResponse.bodyBytes))