From 51d74eaf458b3ea57fff50eba1c8589a03230565 Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Sat, 31 Oct 2020 13:35:01 -0500 Subject: [PATCH] Fix which feeds get removed from the root folder during sync --- .../Sources/Account/ReaderAPI/ReaderAPIAccountDelegate.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Account/Sources/Account/ReaderAPI/ReaderAPIAccountDelegate.swift b/Account/Sources/Account/ReaderAPI/ReaderAPIAccountDelegate.swift index 6bb15e883..60eeecd14 100644 --- a/Account/Sources/Account/ReaderAPI/ReaderAPIAccountDelegate.swift +++ b/Account/Sources/Account/ReaderAPI/ReaderAPIAccountDelegate.swift @@ -745,7 +745,7 @@ private extension ReaderAPIAccountDelegate { } - let taggedFeedIDs = Set(subscriptions.map { String($0.feedID) }) + let taggedFeedIDs = Set(subscriptions.filter({ !$0.categories.isEmpty }).map { String($0.feedID) }) // Remove all feeds from the account container that have a tag for feed in account.topLevelWebFeeds {