Add plumbing for hosted projects. This will currently show them if they exist but provides no UX to create/rename/delete them. Also changed the `ChannelId` type to not auto-cast to u64; this avoids type confusion if you have multiple id types. Release Notes: - N/A
24 lines
711 B
Rust
24 lines
711 B
Rust
mod channel_buffer;
|
|
mod channel_chat;
|
|
mod channel_store;
|
|
|
|
use client::{Client, UserStore};
|
|
use gpui::{AppContext, Model};
|
|
use std::sync::Arc;
|
|
|
|
pub use channel_buffer::{ChannelBuffer, ChannelBufferEvent, ACKNOWLEDGE_DEBOUNCE_INTERVAL};
|
|
pub use channel_chat::{
|
|
mentions_to_proto, ChannelChat, ChannelChatEvent, ChannelMessage, ChannelMessageId,
|
|
MessageParams,
|
|
};
|
|
pub use channel_store::{Channel, ChannelEvent, ChannelMembership, ChannelStore, HostedProjectId};
|
|
|
|
#[cfg(test)]
|
|
mod channel_store_tests;
|
|
|
|
pub fn init(client: &Arc<Client>, user_store: Model<UserStore>, cx: &mut AppContext) {
|
|
channel_store::init(client, user_store, cx);
|
|
channel_buffer::init(client);
|
|
channel_chat::init(client);
|
|
}
|