mirror of
				https://github.com/yattee/yattee.git
				synced 2025-10-30 20:22:06 +00:00 
			
		
		
		
	Revert "Feed calculation logic change"
This reverts commit 2624b7dd0e07674f3639fb18618a5e11b3e9f53f.
This commit is contained in:
		| @@ -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 | ||||
|             } | ||||
|         } | ||||
|     } | ||||
|   | ||||
| @@ -107,6 +107,8 @@ extension PlayerModel { | ||||
|             self.context.delete(watch) | ||||
|  | ||||
|             try? self.context.save() | ||||
|  | ||||
|             FeedModel.shared.calculateUnwatchedFeed() | ||||
|         } | ||||
|     } | ||||
|  | ||||
|   | ||||
| @@ -42,6 +42,8 @@ struct WatchView: View { | ||||
|         } else { | ||||
|             Watch.markAsWatched(videoID: watch?.videoID ?? videoID, account: AccountsModel.shared.current, duration: watch?.videoDuration ?? duration, context: backgroundContext) | ||||
|         } | ||||
|  | ||||
|         FeedModel.shared.calculateUnwatchedFeed() | ||||
|     } | ||||
|  | ||||
|     var imageSystemName: String { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Arkadiusz Fal
					Arkadiusz Fal