🏗️ Split matrix_client.rs to create the matrix_interface module
This commit is contained in:
@@ -7,7 +7,8 @@ use tracing::{debug, error};
|
||||
use crate::base::APP_SETTINGS;
|
||||
use crate::components::avatar_selector::AvatarSelector;
|
||||
use crate::components::header::Header;
|
||||
use crate::matrix_client::{LoginStyle, MatrixClient};
|
||||
use crate::matrix_interface::client::Client;
|
||||
use crate::matrix_interface::worker_tasks::LoginStyle;
|
||||
|
||||
turf::style_sheet!("src/components/login.scss");
|
||||
|
||||
@@ -37,7 +38,7 @@ pub fn Login(cx: Scope) -> Element {
|
||||
let password = login_ref.password.clone().unwrap();
|
||||
|
||||
async move {
|
||||
let new_matrix_client = MatrixClient::spawn(homeserver_url).await;
|
||||
let new_matrix_client = Client::spawn(homeserver_url).await;
|
||||
|
||||
new_matrix_client.init();
|
||||
|
||||
|
Reference in New Issue
Block a user