fix: missing message

This commit is contained in:
2025-02-16 15:48:22 +07:00
parent 0c45695edb
commit 2a5a3b5c0a

View File

@@ -122,7 +122,9 @@ impl Chat {
}, },
)]; )];
let list_state = ListState::new(0, ListAlignment::Bottom, px(1024.), { // Initialize list state
// [item_count] always equal to 1 at the beginning
let list_state = ListState::new(1, ListAlignment::Bottom, px(1024.), {
let this = cx.entity().downgrade(); let this = cx.entity().downgrade();
move |ix, window, cx| { move |ix, window, cx| {
this.update(cx, |this, cx| { this.update(cx, |this, cx| {