Fix most tests for new chat changes

This commit is contained in:
Mikayla 2023-10-03 20:47:54 -07:00
parent 3bc7024f8b
commit db8096ccdc
No known key found for this signature in database
4 changed files with 36 additions and 12 deletions

View file

@ -181,6 +181,10 @@ impl ChatPanel {
})
}
pub fn active_chat(&self) -> Option<ModelHandle<ChannelChat>> {
self.active_chat.as_ref().map(|(chat, _)| chat.clone())
}
pub fn load(
workspace: WeakViewHandle<Workspace>,
cx: AsyncAppContext,

View file

@ -1964,9 +1964,7 @@ impl CollabPanel {
.left(),
)
.with_child({
let style = collab_theme
.channel_name
.in_state(channel.unseen_note_version.is_some());
let style = collab_theme.channel_name.inactive_state();
Flex::row()
.with_child(
Label::new(channel.name.clone(), style.text.clone())