diff options
author | Vitaly Takmazov | 2018-03-03 21:33:11 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-03-03 21:33:11 +0300 |
commit | 5d0e97b3c1a1910a036f455b67205bc5eece1c29 (patch) | |
tree | 5878f990e43ac5b2f163764bfa7f9226a962b8f3 /Juick/ViewControllers/MessagesViewController.m | |
parent | 3e0b7455926477ee5cce1233bf1bf1d6f2bd63f8 (diff) |
discussions
Diffstat (limited to 'Juick/ViewControllers/MessagesViewController.m')
-rw-r--r-- | Juick/ViewControllers/MessagesViewController.m | 9 |
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]; } } |