mod ui; mod accounts; mod app; use matrix_sdk::ruma::exports::serde_json; use tokio::time::{sleep, Duration}; use crate::app::Message; use crate::ui::UI; #[tokio::main] async fn main() -> anyhow::Result<()> { tracing_subscriber::fmt::init(); let mut app = app::App::new(); app.fill_test_data(); let mut ui = UI::new(); ui.draw_main(&app)?; // let client = app.account_manager.add("https://nerdcult.net", "test", "abcd1234").await?; // app.client = Some(client); // let client = app.account_manager.login(0).await?; // app.client = Some(client); Ok(()) }