diff --git a/Shared/Navigation/AppSidebarSubscriptions.swift b/Shared/Navigation/AppSidebarSubscriptions.swift index d88ff831..0bc53db5 100644 --- a/Shared/Navigation/AppSidebarSubscriptions.swift +++ b/Shared/Navigation/AppSidebarSubscriptions.swift @@ -16,7 +16,7 @@ struct AppSidebarSubscriptions: View { var body: some View { Section(header: Text("Subscriptions")) { - ForEach(subscriptions.all) { channel in + ForEach(channels) { channel in NavigationLink(tag: TabSelection.channel(channel.id), selection: $navigation.tabSelection) { LazyView(ChannelVideosView(channel: channel)) } label: { @@ -44,6 +44,10 @@ struct AppSidebarSubscriptions: View { } } } + + var channels: [Channel] { + keepChannelsWithUnwatchedFeedOnTop ? subscriptions.allByUnwatchedCount : subscriptions.all + } } struct AppSidebarSubscriptions_Previews: PreviewProvider {