feat: revamp the chat panel ui #7

Merged
reya merged 9 commits from revamp-chat-ui into master 2026-02-19 07:25:08 +00:00
2 changed files with 3 additions and 2 deletions
Showing only changes of commit a0346fb242 - Show all commits

View File

@@ -60,7 +60,7 @@ impl SendReport {
/// Returns true if the send was successful. /// Returns true if the send was successful.
pub fn success(&self) -> bool { pub fn success(&self) -> bool {
if let Some(output) = self.output.as_ref() { if let Some(output) = self.output.as_ref() {
!output.success.is_empty() !output.failed.is_empty()
} else { } else {
false false
} }

View File

@@ -129,9 +129,10 @@ impl ChatPanel {
// Define all functions that will run after the current cycle // Define all functions that will run after the current cycle
cx.defer_in(window, |this, window, cx| { cx.defer_in(window, |this, window, cx| {
this.subscribe_room_events(window, cx);
this.connect(window, cx); this.connect(window, cx);
this.handle_notifications(cx); this.handle_notifications(cx);
this.subscribe_room_events(window, cx);
this.get_messages(window, cx); this.get_messages(window, cx);
}); });