mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
#1802 (total count is double feed/folder sum count)
- Fixed. (Not quite double, but it was counting each instance of feeds that are in multiple folders; now it only counts the unique set of feeds.)
This commit is contained in:
parent
9e2e73bfd2
commit
ea1397e461
1 changed files with 5 additions and 1 deletions
|
@ -2753,15 +2753,19 @@
|
|||
[folderName isEqual:@"infrequent"] ||
|
||||
(!folderName && ([storiesCollection.activeFolder isEqual:@"everything"] ||
|
||||
[storiesCollection.activeFolder isEqual:@"infrequent"]))) {
|
||||
NSMutableSet *uniqueFeeds = [NSMutableSet new];
|
||||
for (NSArray *folder in [self.dictFolders allValues]) {
|
||||
for (id feedId in folder) {
|
||||
if ([feedId isKindOfClass:[NSString class]] && [feedId startsWith:@"saved:"]) {
|
||||
// Skip saved feeds which have fake unread counts.
|
||||
continue;
|
||||
}
|
||||
[counts addCounts:[self splitUnreadCountForFeed:feedId]];
|
||||
[uniqueFeeds addObject:feedId];
|
||||
}
|
||||
}
|
||||
for (NSString *feedId in uniqueFeeds) {
|
||||
[counts addCounts:[self splitUnreadCountForFeed:feedId]];
|
||||
}
|
||||
} else {
|
||||
if (!folderName) {
|
||||
folder = [self.dictFolders objectForKey:storiesCollection.activeFolder];
|
||||
|
|
Loading…
Add table
Reference in a new issue