🐛 Fix messages loading

This commit is contained in:
2024-09-16 19:50:49 +08:00
parent e11bf204af
commit 5941cb9fd5
5 changed files with 50 additions and 14 deletions

View File

@ -92,10 +92,13 @@ class ChatEventList extends StatelessWidget {
);
},
onFetchData: () {
chatController.loadEvents(
chatController.channel!,
chatController.scope!,
);
if (chatController.currentEvents.length <
chatController.totalEvents.value) {
chatController.loadEvents(
chatController.channel!,
chatController.scope!,
);
}
},
);
}),