From 7e32c9f5510b4a3a87705fbaf046063a4cd6b8fd Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Sun, 25 Oct 2020 17:44:43 -0500 Subject: [PATCH] Correctly delete last feed in a folder. --- .../Account/ReaderAPI/ReaderAPIAccountDelegate.swift | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Account/Sources/Account/ReaderAPI/ReaderAPIAccountDelegate.swift b/Account/Sources/Account/ReaderAPI/ReaderAPIAccountDelegate.swift index 79a6fdba2..b3ef66162 100644 --- a/Account/Sources/Account/ReaderAPI/ReaderAPIAccountDelegate.swift +++ b/Account/Sources/Account/ReaderAPI/ReaderAPIAccountDelegate.swift @@ -381,12 +381,8 @@ final class ReaderAPIAccountDelegate: AccountDelegate { } func removeWebFeed(for account: Account, with feed: WebFeed, from container: Container, completion: @escaping (Result) -> Void) { - if feed.folderRelationship?.count ?? 0 > 1 { - deleteTagging(for: account, with: feed, from: container, completion: completion) - } else { - account.clearWebFeedMetadata(feed) - deleteSubscription(for: account, with: feed, from: container, completion: completion) - } + account.clearWebFeedMetadata(feed) + deleteSubscription(for: account, with: feed, from: container, completion: completion) } func moveWebFeed(for account: Account, with feed: WebFeed, from: Container, to: Container, completion: @escaping (Result) -> Void) {