From 0b2a9d2bea5620e0e7d99097054f7a5879122dab Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Tue, 6 Feb 2024 11:37:08 -0500 Subject: [PATCH] Remove empty message editor placeholder (#7444) This PR removes the placeholder that we previously displayed for the chat message editor. With the changes in #7441 we can no longer hit this codepath. Release Notes: - N/A --- crates/collab_ui/src/chat_panel.rs | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/crates/collab_ui/src/chat_panel.rs b/crates/collab_ui/src/chat_panel.rs index 804bd3acf8..0ee4805a74 100644 --- a/crates/collab_ui/src/chat_panel.rs +++ b/crates/collab_ui/src/chat_panel.rs @@ -596,19 +596,7 @@ impl Render for ChatPanel { el.border_t_1().border_color(cx.theme().colors().border) }) .p_2() - .map(|el| { - if self.active_chat.is_some() { - el.child(self.message_editor.clone()) - } else { - el.child( - div() - .rounded_md() - .h_6() - .w_full() - .bg(cx.theme().colors().editor_background), - ) - } - }), + .child(self.message_editor.clone()), ) .filter(|_| self.active_chat.is_some()), )