Correct how feeds were deleted so that only the feed in the correct container was deleted

This commit is contained in:
Maurice Parker
2019-05-29 17:56:26 -05:00
parent bead6ae123
commit 5e3fcfd955
8 changed files with 15 additions and 22 deletions

View File

@@ -55,7 +55,11 @@ class ScriptableAccount: NSObject, UniqueIdScriptingObject, ScriptingObjectConta
}
} else if let scriptableFeed = element as? ScriptableFeed {
BatchUpdate.shared.perform {
account.deleteFeed(scriptableFeed.feed) { result in
var container: Container? = nil
if let scriptableFolder = scriptableFeed.container as? ScriptableFolder {
container = scriptableFolder.folder
}
account.deleteFeed(scriptableFeed.feed, from: container) { result in
}
}
}