fix well known not fetched
This commit is contained in:
parent
c9aeed9057
commit
749d0f05bc
|
|
@ -585,9 +585,8 @@ class Client extends MatrixApi {
|
||||||
/// The result of this call is stored in [wellKnown] for later use at runtime.
|
/// The result of this call is stored in [wellKnown] for later use at runtime.
|
||||||
@override
|
@override
|
||||||
Future<DiscoveryInformation> getWellknown() async {
|
Future<DiscoveryInformation> getWellknown() async {
|
||||||
Logs().v(userID!);
|
|
||||||
final wellKnownResponse = await httpClient.get(
|
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(
|
final wellKnown = DiscoveryInformation.fromJson(
|
||||||
jsonDecode(utf8.decode(wellKnownResponse.bodyBytes))
|
jsonDecode(utf8.decode(wellKnownResponse.bodyBytes))
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue