Add browsing setting for unwatched feed

Fix #383
This commit is contained in:
Arkadiusz Fal
2023-02-28 21:17:12 +01:00
parent b9ad5bc633
commit f8d79bb08c
8 changed files with 19 additions and 6 deletions

View File

@@ -115,7 +115,7 @@ final class FeedModel: ObservableObject, CacheModel {
}
func calculateUnwatchedFeed() {
guard let account = accounts.current, accounts.signedIn else { return }
guard let account = accounts.current, accounts.signedIn, Defaults[.showUnwatchedFeedBadges] else { return }
let feed = cacheModel.retrieveFeed(account: account)
backgroundContext.perform { [weak self] in
guard let self else { return }