TF-1931 Fix user cannot do infinity scroll when he turn off network and reconnect again

(cherry picked from commit e19a644e10671089ac792cb1072cc1856b909940)
This commit is contained in:
dab246
2023-06-19 16:38:45 +07:00
committed by Dat H. Pham
parent 64ad8ea049
commit 4e740d2a20
3 changed files with 29 additions and 9 deletions
@@ -302,9 +302,10 @@ class ThreadView extends GetWidget<ThreadController>
return NotificationListener<ScrollNotification>(
onNotification: (ScrollNotification scrollInfo) {
if (scrollInfo is ScrollEndNotification
&& !controller.isLoadingMore
&& !controller.loadingMoreStatus.isRunning
&& scrollInfo.metrics.pixels == scrollInfo.metrics.maxScrollExtent
) {
log('ThreadView::_buildListEmailBody(): CALL LOAD MORE');
if (controller.isSearchActive() || controller.searchController.advancedSearchIsActivated.isTrue) {
controller.searchMoreEmails();
} else {