mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
#1704 (item from Infrequent site stories opens wrong story)
This one took a long time to reproduce and track down; it turned out that because the infrequent stories use a magical loading parameter, they are not suitable for offline caching; the offlien stories didn’t match the fetched one, thus messing up the cached next story page.
This commit is contained in:
parent
a84dc6ee13
commit
0d19caa7d4
1 changed files with 4 additions and 0 deletions
|
@ -685,6 +685,10 @@ typedef NS_ENUM(NSUInteger, MarkReadShowMenu)
|
|||
}
|
||||
|
||||
- (void)beginOfflineTimer {
|
||||
if ([self.storiesCollection.activeFolder isEqualToString:@"infrequent"]) {
|
||||
return;
|
||||
}
|
||||
|
||||
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, 1 * NSEC_PER_SEC), dispatch_get_main_queue(), ^{
|
||||
if (!self.storiesCollection.storyLocationsCount && !self.pageFinished &&
|
||||
self.storiesCollection.feedPage == 1 && self.isOnline) {
|
||||
|
|
Loading…
Add table
Reference in a new issue