Revert "Feed calculation logic change"

This reverts commit 2624b7dd0e07674f3639fb18618a5e11b3e9f53f.
This commit is contained in:
Arkadiusz Fal
2022-12-16 22:22:59 +01:00
parent 4c0fae19ee
commit 4acf9284f4
3 changed files with 5 additions and 3 deletions

View File

@@ -130,9 +130,7 @@ final class FeedModel: ObservableObject, CacheModel {
}
let byChannel = Dictionary(grouping: unwatched) { $0.channel.id }.mapValues(\.count)
if self.unwatchedByChannel[account] != byChannel {
self.unwatchedByChannel[account] = byChannel
}
self.unwatchedByChannel[account] = byChannel
}
}
}

View File

@@ -107,6 +107,8 @@ extension PlayerModel {
self.context.delete(watch)
try? self.context.save()
FeedModel.shared.calculateUnwatchedFeed()
}
}