Update iOS to work with new delete API.

This commit is contained in:
Maurice Parker 2019-05-09 07:28:51 -05:00
parent 50d3a5799c
commit e45362bffc
1 changed files with 8 additions and 1 deletions

View File

@ -365,7 +365,14 @@ class MasterFeedViewController: ProgressTableViewController, UndoableCommandRunn
let account = accountForNode(destNode)
let sourceContainer = sourceNode.parent?.representedObject as? Container
let destinationFolder = destParentNode?.representedObject as? Folder
sourceContainer?.deleteFeed(feed)
sourceContainer?.deleteFeed(feed) { [weak self] result in
switch result {
case .success:
break
case .failure(let error):
self?.presentError(error)
}
}
account?.addFeed(feed, to: destinationFolder)
account?.structureDidChange()