mirror of
https://github.com/yattee/yattee.git
synced 2025-08-05 02:04:07 +00:00
Fix crashes
This commit is contained in:
@@ -40,7 +40,9 @@ struct WatchView: View {
|
||||
if finished, let watch {
|
||||
PlayerModel.shared.removeWatch(watch)
|
||||
} else {
|
||||
Watch.markAsWatched(videoID: watch?.videoID ?? videoID, account: AccountsModel.shared.current, duration: watch?.videoDuration ?? duration, context: backgroundContext)
|
||||
if let account = AccountsModel.shared.current {
|
||||
Watch.markAsWatched(videoID: watch?.videoID ?? videoID, account: account, duration: watch?.videoDuration ?? duration, context: backgroundContext)
|
||||
}
|
||||
}
|
||||
|
||||
FeedModel.shared.calculateUnwatchedFeed()
|
||||
|
Reference in New Issue
Block a user