#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:
David Sinclair 2022-07-07 21:04:30 -07:00
parent a84dc6ee13
commit 0d19caa7d4

View file

@ -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) {