fix: missing message
This commit is contained in:
@@ -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| {
|
||||||
|
|||||||
Reference in New Issue
Block a user