"Auto load more" async while scrolling.

This commit is contained in:
Matthew Chen 2018-11-15 22:02:59 -05:00
parent 6c9c8eb656
commit 910b249112
1 changed files with 5 additions and 1 deletions

View File

@ -3746,7 +3746,11 @@ typedef enum : NSUInteger {
- (void)scrollViewDidScroll:(UIScrollView *)scrollView
{
[self updateLastVisibleTimestamp];
[self autoLoadMoreIfNecessary];
__weak ConversationViewController *weakSelf = self;
dispatch_async(dispatch_get_main_queue(), ^{
[weakSelf autoLoadMoreIfNecessary];
});
}
- (void)scrollViewWillBeginDragging:(UIScrollView *)scrollView