summaryrefslogtreecommitdiff
path: root/Juick/ViewControllers/MessagesViewController.m
diff options
context:
space:
mode:
Diffstat (limited to 'Juick/ViewControllers/MessagesViewController.m')
-rw-r--r--Juick/ViewControllers/MessagesViewController.m9
1 files changed, 1 insertions, 8 deletions
diff --git a/Juick/ViewControllers/MessagesViewController.m b/Juick/ViewControllers/MessagesViewController.m
index de79164..c718336 100644
--- a/Juick/ViewControllers/MessagesViewController.m
+++ b/Juick/ViewControllers/MessagesViewController.m
@@ -103,14 +103,7 @@
CGFloat actualPosition = scrollView_.contentOffset.y;
CGFloat contentHeight = scrollView_.contentSize.height - scrollView_.contentSize.height / 2;
if (actualPosition >= contentHeight && !self.dataLoading && ![self.tableView isTracking]) {
- Message *lastMsg = [self.messages lastObject];
- if (lastMsg != nil) {
- NSNumber *lastMid = lastMsg.mid;
- if (![self.path isEqualToString:[APIClient threadUrl]]) {
- self.params = [@{@"before_mid":lastMid} mutableCopy];
- }
- [self refreshData:NO];
- }
+ [_messagesDelegate loadMore];
}
}