Always show Smart Feeds. Fixes #3052

Display Smart Feeds always, even when read articles are being hidden and all articles from a feed have been marked as read, and even when there are no items in a Smart Feed.
This commit is contained in:
Duncan Babbage 2021-04-27 12:23:51 +12:00
parent 2e81c050dc
commit c84fe751e6
1 changed files with 1 additions and 3 deletions

View File

@ -56,9 +56,7 @@ private extension WebFeedTreeControllerDelegate {
func childNodesForSmartFeeds(_ parentNode: Node) -> [Node] {
return SmartFeedsController.shared.smartFeeds.compactMap { (feed) -> Node? in
if let feedID = feed.feedID, !filterExceptions.contains(feedID) && isReadFiltered && feed.unreadCount == 0 {
return nil
}
// All Smart Feeds should remain visible despite the Hide Read Feeds setting
return parentNode.existingOrNewChildNode(with: feed as AnyObject)
}
}