From a0346fb24213bf2fc3a29c87814d6afc9b72a1ca Mon Sep 17 00:00:00 2001 From: reya Date: Thu, 19 Feb 2026 14:24:17 +0700 Subject: [PATCH] . --- crates/chat/src/room.rs | 2 +- crates/chat_ui/src/lib.rs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/chat/src/room.rs b/crates/chat/src/room.rs index 4c6caf5..029debd 100644 --- a/crates/chat/src/room.rs +++ b/crates/chat/src/room.rs @@ -60,7 +60,7 @@ impl SendReport { /// Returns true if the send was successful. pub fn success(&self) -> bool { if let Some(output) = self.output.as_ref() { - !output.success.is_empty() + !output.failed.is_empty() } else { false } diff --git a/crates/chat_ui/src/lib.rs b/crates/chat_ui/src/lib.rs index 37d8113..bb46fe4 100644 --- a/crates/chat_ui/src/lib.rs +++ b/crates/chat_ui/src/lib.rs @@ -129,9 +129,10 @@ impl ChatPanel { // Define all functions that will run after the current cycle cx.defer_in(window, |this, window, cx| { - this.subscribe_room_events(window, cx); this.connect(window, cx); this.handle_notifications(cx); + + this.subscribe_room_events(window, cx); this.get_messages(window, cx); });