mirror of
https://github.com/yattee/yattee.git
synced 2025-10-11 18:08:12 +00:00
Fix handling feed
This commit is contained in:
@@ -106,6 +106,12 @@ final class FeedModel: ObservableObject, CacheModel {
|
||||
loadFeed(force: true, paginating: true)
|
||||
}
|
||||
|
||||
func onAccountChange() {
|
||||
reset()
|
||||
loadResources(force: true)
|
||||
calculateUnwatchedFeed()
|
||||
}
|
||||
|
||||
func calculateUnwatchedFeed() {
|
||||
guard let account = accounts.current, accounts.signedIn else { return }
|
||||
let feed = cacheModel.retrieveFeed(account: account)
|
||||
|
Reference in New Issue
Block a user