♻️ Replace flume with tokio and share Matrix client infos to chats
- Remove of the flume dependency. - Add the capability to share data provided by the Matrix client to the ChatsWindow. Indeed, until the 0.6 Dioxus release, each window runs in a separate virtual DOM so the context and Fermi states are completely seperate (cf. https://discord.com/channels/899851952891002890/1188206938215948378).
This commit is contained in:
@@ -2,14 +2,11 @@ use std::str::FromStr;
|
||||
|
||||
use dioxus::prelude::*;
|
||||
use fermi::*;
|
||||
use matrix_sdk::ruma::user_id;
|
||||
use tracing::{debug, error};
|
||||
use tracing::debug;
|
||||
|
||||
use crate::base::{APP_SETTINGS, SESSION};
|
||||
use crate::base::SESSION;
|
||||
use crate::components::avatar_selector::AvatarSelector;
|
||||
use crate::components::header::Header;
|
||||
use crate::matrix_interface::client::Client;
|
||||
use crate::matrix_interface::worker_tasks::LoginStyle;
|
||||
|
||||
turf::style_sheet!("src/components/login.scss");
|
||||
|
||||
|
Reference in New Issue
Block a user