"Auto load more" async while scrolling.

pull/1/head
Matthew Chen 7 years ago
parent 6c9c8eb656
commit 910b249112

@ -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

Loading…
Cancel
Save