diff options
author | Vitaly Takmazov | 2019-03-24 12:02:47 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2019-03-24 12:02:47 +0300 |
commit | 61cf26b3959a975816d10c54db00fb9a16c02e65 (patch) | |
tree | 80902ba0432bea8c0fed6524ee58fac37cd2513d /Juick/ViewControllers/DiscoverViewController.m | |
parent | 5169dc03ee6d7303dc15d311f88424bd2d65a5a1 (diff) |
Fix discover scrolling
Diffstat (limited to 'Juick/ViewControllers/DiscoverViewController.m')
-rw-r--r-- | Juick/ViewControllers/DiscoverViewController.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Juick/ViewControllers/DiscoverViewController.m b/Juick/ViewControllers/DiscoverViewController.m index 7fb2805..f75e7d5 100644 --- a/Juick/ViewControllers/DiscoverViewController.m +++ b/Juick/ViewControllers/DiscoverViewController.m @@ -25,8 +25,8 @@ - (void)loadMore { Message *lastMsg = [self.messages lastObject]; if (lastMsg != nil) { - NSDate *msgDate = [[APIClient sharedClient].dateFormatter dateFromString:lastMsg.timestamp]; - self.params = [@{@"to" : [NSString stringWithFormat:@"%.0f", [msgDate timeIntervalSince1970] * 1000]} mutableCopy]; + NSNumber *lastMid = lastMsg.mid; + self.params = [@{@"before_mid":lastMid} mutableCopy]; [self setShouldScrollToBottomOnRefresh:NO]; [self refreshData]; } |