mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
fix mtxchat.login()
This commit is contained in:
parent
7803efec7f
commit
49936abc97
1 changed files with 2 additions and 2 deletions
|
|
@ -282,8 +282,8 @@ impl<'a> MtxChat<'a> {
|
|||
self.logged_in = false;
|
||||
|
||||
let mut url = Url::parse("https://matrix.org").unwrap();
|
||||
if let Ok(host) = self.get(USER_DOMAIN_KEY) {
|
||||
url.set_host(host.as_deref()).expect("failed to set host");
|
||||
if let Ok(Some(host)) = self.get(USER_DOMAIN_KEY) {
|
||||
url.set_host(Some(&host)).expect("failed to set host");
|
||||
}
|
||||
if let Some(token) = &self.token {
|
||||
if let Some(user_id) = web::whoami(&mut url, &token, &mut self.agent) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue