@ -409,8 +409,6 @@ final class HomeVC: BaseVC, SessionUtilRespondingViewController, UITableViewData
// E n s u r e t h e f i r s t l o a d r u n s w i t h o u t a n i m a t i o n s ( i f w e d o n ' t d o t h i s t h e c e l l s w i l l a n i m a t e
// i n f r o m a f r a m e o f C G R e c t . z e r o )
guard hasLoadedInitialThreadData else {
hasLoadedInitialThreadData = true
UIView . performWithoutAnimation { [ weak self ] in
// H i d e t h e ' l o a d i n g c o n v e r s a t i o n s ' l a b e l ( n o w t h a t w e h a v e r e c e i v e d c o n v e r s a t i o n d a t a )
self ? . loadingConversationsLabel . isHidden = true
@ -422,6 +420,8 @@ final class HomeVC: BaseVC, SessionUtilRespondingViewController, UITableViewData
)
self ? . viewModel . updateThreadData ( updatedData )
self ? . tableView . reloadData ( )
self ? . hasLoadedInitialThreadData = true
}
return
}
@ -460,7 +460,11 @@ final class HomeVC: BaseVC, SessionUtilRespondingViewController, UITableViewData
}
private func autoLoadNextPageIfNeeded ( ) {
guard ! self . isAutoLoadingNextPage && ! self . isLoadingMore else { return }
guard
self . hasLoadedInitialThreadData &&
! self . isAutoLoadingNextPage &&
! self . isLoadingMore
else { return }
self . isAutoLoadingNextPage = true