Add rooms topics management

This commit is contained in:
2023-12-23 14:54:21 +01:00
parent c9292fd613
commit 8679a23692
3 changed files with 89 additions and 44 deletions

View File

@@ -3,6 +3,7 @@ use std::sync::Arc;
use matrix_sdk::Client as MatrixClient;
use tokio::sync::mpsc::UnboundedSender;
use super::client::RoomTopicEvent;
use super::worker_tasks::{oneshot, LoginStyle, WorkerTask};
use crate::base::Room;
@@ -11,6 +12,7 @@ pub struct Requester {
pub matrix_client: Arc<MatrixClient>,
pub tx: UnboundedSender<WorkerTask>,
pub rooms_receiver: flume::Receiver<Room>,
pub room_topic_receiver: flume::Receiver<RoomTopicEvent>,
}
impl Requester {