Skip to content

Commit

Permalink
chore(settings): remove legacy settings property
Browse files Browse the repository at this point in the history
  • Loading branch information
AXeL-dev committed Oct 15, 2022
1 parent 25264b0 commit de32a0e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/store/utils/preload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ const replaceLegacySettings = (
bookmarksViewSorting,
defaultView,
homeDisplayOptions,
recentVideosDisplayOptions,
...rest
} = settings as LegacySettings;
return {
Expand Down
4 changes: 4 additions & 0 deletions src/types/legacy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ export interface LegacySettings extends Omit<Settings, 'viewOptions'> {
recentViewSorting: ViewSorting;
watchLaterViewSorting: ViewSorting;
bookmarksViewSorting: ViewSorting;
recentVideosDisplayOptions?: {
hideViewedVideos: boolean;
hideWatchLaterVideos: boolean;
};
}

export type LegacyVideoFlags = VideoFlags & {
Expand Down

0 comments on commit de32a0e

Please sign in to comment.