This commit is contained in:
2026-09-16 08:51:35 +07:00
parent 9517671b9e
commit 9c5028ce05
+2 -1
View File
@@ -2021,6 +2021,7 @@ impl Render for ChatPanel {
const WARNING: &str = "Attachments added while typing are uploaded without encryption";
let is_typing = !self.input.read(cx).value().trim().is_empty();
let pending_attachments = !self.encrypted_attachments.read(cx).is_empty();
v_flex()
.image_cache(coop_cache(self.id.clone(), 100))
@@ -2083,7 +2084,7 @@ impl Render for ChatPanel {
.children(self.render_attachment_list(window, cx))
.children(self.render_pending_file_list(window, cx))
.children(self.render_reply_list(window, cx))
.when(is_typing, |this| {
.when(is_typing && pending_attachments, |this| {
this.child(
div()
.px_1()