adding user to short circuit finding story

This commit is contained in:
Roy Yang 2012-07-16 20:17:24 -07:00
parent 8308a2929f
commit f4cb6e662a
2 changed files with 5 additions and 4 deletions

View file

@ -372,7 +372,7 @@
self.pageFetching = NO;
// test for tryfeed
if (appDelegate.isTryFeed) {
if (appDelegate.isTryFeed && !self.foundTryFeed) {
for (int i = 0; i < appDelegate.activeFeedStories.count; i++) {
NSString *storyIdStr = [[appDelegate.activeFeedStories objectAtIndex:i] objectForKey:@"id"];
if ([storyIdStr isEqualToString:appDelegate.tryFeedStoryId]) {
@ -397,8 +397,6 @@
}
}
[self performSelector:@selector(checkScroll)
withObject:nil
afterDelay:0.2];
@ -584,6 +582,9 @@
int location = [[[appDelegate activeFeedStoryLocations] objectAtIndex:indexPath.row] intValue];
[self loadStory:cell atRow:location];
}
self.foundTryFeed = YES;
[MBProgressHUD hideHUDForView:appDelegate.splitStoryDetailNavigationController.view animated:YES];
}
- (void)changeRowStyleToRead:(FeedDetailTableCell *)cell {

View file

@ -425,7 +425,7 @@
NSDictionary *feed = [self.dictSocialFeeds objectForKey:feedId];
[self setTryFeedStoryId:@"http://techcrunch.com/?p=576238"];
[self setTryFeedStoryId:contentId];
[self setIsTryFeed:YES];
[self setIsSocialView:YES];
[self setActiveFeed:feed];