summaryrefslogtreecommitdiff
path: root/Juick/ViewControllers/MessagesViewController.m
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-03-03 21:33:11 +0300
committerGravatar Vitaly Takmazov2018-03-03 21:33:11 +0300
commit5d0e97b3c1a1910a036f455b67205bc5eece1c29 (patch)
tree5878f990e43ac5b2f163764bfa7f9226a962b8f3 /Juick/ViewControllers/MessagesViewController.m
parent3e0b7455926477ee5cce1233bf1bf1d6f2bd63f8 (diff)
discussions
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];
}
}