Allow logging into homeservers without discovery working
This commit is contained in:
parent
724171384c
commit
620440e2a1
2 changed files with 38 additions and 20 deletions
|
|
@ -311,7 +311,7 @@ class ClientController extends AsyncNotifier<int> {
|
|||
Future<Uri?> discoverHomeserver(Uri homeserver) async {
|
||||
try {
|
||||
final response = await _sendCommand("discover_homeserver", {
|
||||
"user_id": "@fake-user:${homeserver.host}",
|
||||
"user_id": "@fake-user:${homeserver.authority}",
|
||||
});
|
||||
return Uri.parse(response["m.homeserver"]?["base_url"]);
|
||||
} catch (error) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue