🏗️ Split matrix_client.rs to create the matrix_interface module

This commit is contained in:
2023-12-17 11:54:21 +01:00
parent ae8dba86f6
commit 513b05ddb3
7 changed files with 147 additions and 129 deletions

View File

@@ -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();