From 61cf26b3959a975816d10c54db00fb9a16c02e65 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sun, 24 Mar 2019 12:02:47 +0300 Subject: Fix discover scrolling --- Juick/ViewControllers/FeedViewController.m | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'Juick/ViewControllers/FeedViewController.m') diff --git a/Juick/ViewControllers/FeedViewController.m b/Juick/ViewControllers/FeedViewController.m index f664f62..fc8c387 100644 --- a/Juick/ViewControllers/FeedViewController.m +++ b/Juick/ViewControllers/FeedViewController.m @@ -38,13 +38,8 @@ -(void) loadMore { Message *lastMsg = [self.messages lastObject]; if (lastMsg != nil) { - if ([self.path isEqualToString:[APIClient discussionsUrl]]) { - NSDate *msgDate = [[APIClient sharedClient].dateFormatter dateFromString:lastMsg.timestamp]; - self.params = [@{@"to" : [NSString stringWithFormat:@"%.0f", [msgDate timeIntervalSince1970] * 1000]} mutableCopy]; - } else if (![self.path isEqualToString:[APIClient threadUrl]]) { - NSNumber *lastMid = lastMsg.mid; - self.params = [@{@"before_mid":lastMid} mutableCopy]; - } + NSNumber *lastMid = lastMsg.mid; + self.params = [@{@"before_mid":lastMid} mutableCopy]; [self setShouldScrollToBottomOnRefresh:NO]; [self refreshData]; } -- cgit v1.2.3