Start on Presence as the backing model for the people panel

This commit is contained in:
Antonio Scandurra
2021-09-17 16:18:41 +02:00
parent 12fa309b7c
commit f2825cceba
8 changed files with 191 additions and 6 deletions
+4 -1
View File
@@ -13,7 +13,9 @@ use zed::{
channel::ChannelList,
chat_panel, editor, file_finder,
fs::RealFs,
http, language, menus, rpc, settings, theme_selector,
http, language, menus,
presence::Presence,
rpc, settings, theme_selector,
user::UserStore,
workspace::{self, OpenNew, OpenParams, OpenPaths},
AppState,
@@ -45,6 +47,7 @@ fn main() {
settings,
themes,
channel_list: cx.add_model(|cx| ChannelList::new(user_store.clone(), rpc.clone(), cx)),
presence: cx.add_model(|cx| Presence::new(user_store.clone(), rpc.clone(), cx)),
rpc,
user_store,
fs: Arc::new(RealFs),