mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-29 14:18:49 +03:00
Reconfigure server url, when requested by login response
This commit is contained in:
parent
52871cf93c
commit
aa3d4c4f15
1 changed files with 6 additions and 0 deletions
|
@ -315,6 +315,12 @@ LoginPage::onLoginButtonClicked()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (res.well_known) {
|
||||||
|
http::client()->set_server(res.well_known->homeserver.base_url);
|
||||||
|
nhlog::net()->info("Login requested to user server: " +
|
||||||
|
res.well_known->homeserver.base_url);
|
||||||
|
}
|
||||||
|
|
||||||
emit loginOk(res);
|
emit loginOk(res);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue