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
+6 -1
View File
@@ -7,6 +7,7 @@ use crate::{
editor::Buffer,
fs::Fs,
language::LanguageRegistry,
people_panel::PeoplePanel,
project_browser::ProjectBrowser,
rpc,
settings::Settings,
@@ -378,7 +379,11 @@ impl Workspace {
})
.into(),
);
right_sidebar.add_item("icons/user-16.svg", cx.add_view(|_| ProjectBrowser).into());
right_sidebar.add_item(
"icons/user-16.svg",
cx.add_view(|cx| PeoplePanel::new(app_state.presence.clone(), cx))
.into(),
);
let mut current_user = app_state.user_store.watch_current_user().clone();
let mut connection_status = app_state.rpc.status().clone();