mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-02-02 12:06:58 +01:00
Call the correct fetchUnreadCounts methd.
This commit is contained in:
parent
3f4c84e442
commit
0b2ec6473a
@ -623,7 +623,7 @@ public final class Account: DisplayNameProvider, UnreadCountProvider, Container,
|
|||||||
}
|
}
|
||||||
|
|
||||||
public func updateUnreadCounts(for webFeeds: Set<WebFeed>, completion: VoidCompletionBlock? = nil) {
|
public func updateUnreadCounts(for webFeeds: Set<WebFeed>, completion: VoidCompletionBlock? = nil) {
|
||||||
fetchUnreadCounts(webFeeds, completion)
|
fetchUnreadCounts(for: webFeeds, completion: completion)
|
||||||
}
|
}
|
||||||
|
|
||||||
public func fetchArticles(_ fetchType: FetchType) throws -> Set<Article> {
|
public func fetchArticles(_ fetchType: FetchType) throws -> Set<Article> {
|
||||||
@ -1230,7 +1230,7 @@ private extension Account {
|
|||||||
/// Fetch unread counts for zero or more feeds.
|
/// Fetch unread counts for zero or more feeds.
|
||||||
///
|
///
|
||||||
/// Uses the most efficient method based on how many feeds were passed in.
|
/// Uses the most efficient method based on how many feeds were passed in.
|
||||||
func fetchUnreadCounts(for feeds: Set<WebFeed>, _ completion: VoidCompletionBlock?) {
|
func fetchUnreadCounts(for feeds: Set<WebFeed>, completion: VoidCompletionBlock?) {
|
||||||
if feeds.isEmpty {
|
if feeds.isEmpty {
|
||||||
completion?()
|
completion?()
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user