Move ChannelList, UserStore into client crate

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
Max Brunsfeld 2021-10-04 17:30:11 -07:00
parent 94209d2b6d
commit bbb27b9654
15 changed files with 83 additions and 76 deletions

View file

@ -1,8 +1,6 @@
pub mod assets;
pub mod channel;
pub mod chat_panel;
pub mod file_finder;
pub mod http;
pub mod language;
pub mod menus;
pub mod people_panel;
@ -12,12 +10,10 @@ pub mod settings;
pub mod test;
pub mod theme;
pub mod theme_selector;
pub mod user;
pub mod workspace;
pub use buffer;
use buffer::LanguageRegistry;
use channel::ChannelList;
pub use client;
pub use editor;
use gpui::{action, keymap::Binding, ModelHandle};
@ -41,9 +37,9 @@ pub struct AppState {
pub languages: Arc<LanguageRegistry>,
pub themes: Arc<settings::ThemeRegistry>,
pub client: Arc<client::Client>,
pub user_store: ModelHandle<user::UserStore>,
pub user_store: ModelHandle<client::UserStore>,
pub fs: Arc<dyn fs::Fs>,
pub channel_list: ModelHandle<ChannelList>,
pub channel_list: ModelHandle<client::ChannelList>,
}
pub fn init(app_state: &Arc<AppState>, cx: &mut gpui::MutableAppContext) {