matrix_sdk_base/response_processors/room/
mod.rs1use ruma::RoomId;
16use tokio::sync::broadcast::Sender;
17
18use crate::{store::ambiguity_map::AmbiguityCache, RequestedRequiredStates, RoomInfoNotableUpdate};
19
20pub mod display_name;
21pub mod msc4186;
22pub mod sync_v2;
23
24pub struct RoomCreationData<'a> {
26 room_id: &'a RoomId,
27 room_info_notable_update_sender: Sender<RoomInfoNotableUpdate>,
28 requested_required_states: &'a RequestedRequiredStates,
29 ambiguity_cache: &'a mut AmbiguityCache,
30}
31
32impl<'a> RoomCreationData<'a> {
33 pub fn new(
34 room_id: &'a RoomId,
35 room_info_notable_update_sender: Sender<RoomInfoNotableUpdate>,
36 requested_required_states: &'a RequestedRequiredStates,
37 ambiguity_cache: &'a mut AmbiguityCache,
38 ) -> Self {
39 Self {
40 room_id,
41 room_info_notable_update_sender,
42 requested_required_states,
43 ambiguity_cache,
44 }
45 }
46}