mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Fix a couple bugs in PseudoFeed. Make callback for fetching unread count @escaping.
This commit is contained in:
@@ -324,10 +324,10 @@ public final class Account: DisplayNameProvider, UnreadCountProvider, Container,
|
||||
return database.fetchUnreadArticles(for: folder.flattenedFeeds())
|
||||
}
|
||||
|
||||
public func fetchUnreadCountForToday(_ callback: (Int) -> Void) {
|
||||
public func fetchUnreadCountForToday(_ callback: @escaping (Int) -> Void) {
|
||||
|
||||
let startOfToday = NSCalendar.startOfToday()
|
||||
|
||||
database.fetchUnreadCount(for: flattenedFeeds(), since: startOfToday, callback: callback)
|
||||
}
|
||||
|
||||
// MARK: - Notifications
|
||||
|
||||
Reference in New Issue
Block a user