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
This commit is contained in:
Marshall Bowers 2024-02-06 11:37:08 -05:00 committed by GitHub
parent 960eaf6245
commit 0b2a9d2bea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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()),
)