⚡️ Use of the token returned by the first sync with the homeserver
This commit is contained in:
@@ -212,8 +212,9 @@ pub async fn login(
|
||||
if homeserver_url.is_some() && username.is_some() && password.is_some() {
|
||||
let client = Client::spawn(homeserver_url.unwrap()).await;
|
||||
|
||||
// TODO: Handle error case.
|
||||
let _ = client.init().await;
|
||||
if let Err(err) = client.init().await {
|
||||
error!("Following error occureds during client init: {}", err);
|
||||
}
|
||||
|
||||
match client
|
||||
.login(LoginStyle::Password(username.unwrap(), password.unwrap()))
|
||||
|
Reference in New Issue
Block a user