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,