Start work on subscribing to model from ChatPanel

This commit is contained in:
Max Brunsfeld 2021-08-23 17:21:06 -07:00
parent 6df80d94ad
commit baded7d416
4 changed files with 29 additions and 28 deletions

View file

@ -374,14 +374,8 @@ impl Workspace {
let mut right_sidebar = Sidebar::new(Side::Right);
right_sidebar.add_item(
"icons/comment-16.svg",
cx.add_view(|cx| {
ChatPanel::new(
app_state.channel_list.clone(),
app_state.settings.clone(),
cx,
)
})
.into(),
cx.add_view(|cx| ChatPanel::new(app_state.channel_list.clone(), cx))
.into(),
);
right_sidebar.add_item("icons/user-16.svg", cx.add_view(|_| ProjectBrowser).into());