mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-11-30 01:10:38 +00:00
Undo the destination add when a Feedly feed move fails halfway, instead of leaving the feed in both folders.
This commit is contained in:
1 parent
92f36349b9
commit
2ff432cfa6
1 file changed
+4
@@ -740,6 +740,10 @@ import Secrets
|
||||
do {
|
||||
try await caller.removeFeed(feed.feedID, fromCollectionWith: fromCollectionID)
|
||||
} catch {
|
||||
// Undo the whole move — without removing the remote add and the local
|
||||
// destination copy, the feed ends up in both folders permanently.
|
||||
try? await caller.removeFeed(feed.feedID, fromCollectionWith: toCollectionID)
|
||||
to.removeFeedFromTreeAtTopLevel(feed)
|
||||
from.addFeedToTreeAtTopLevel(feed)
|
||||
throw FeedlyAccountDelegateError.unableToMoveFeedBetweenFolders(feed.nameForDisplay, from.nameForDisplay, to.nameForDisplay)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user