mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-20 22:34:10 +01:00
Update iOS to work with the latest Account API
This commit is contained in:
parent
0ddb47aa32
commit
e7c339fb09
@ -373,22 +373,17 @@ class MasterFeedViewController: ProgressTableViewController, UndoableCommandRunn
|
||||
}()
|
||||
|
||||
// Move the Feed
|
||||
let source = sourceNode.parent?.representedObject as? Container
|
||||
let destination = destParentNode?.representedObject as? Container
|
||||
source?.removeFeed(feed) { [weak self] result in
|
||||
guard let source = sourceNode.parent?.representedObject as? Container, let destination = destParentNode?.representedObject as? Container else {
|
||||
return
|
||||
}
|
||||
|
||||
BatchUpdate.shared.start()
|
||||
source.account?.moveFeed(feed, from: source, to: destination) { result in
|
||||
switch result {
|
||||
case .success:
|
||||
destination?.addFeed(feed) { result in
|
||||
switch result {
|
||||
case .success:
|
||||
break
|
||||
BatchUpdate.shared.end()
|
||||
case .failure(let error):
|
||||
source?.addFeed(feed) { result in }
|
||||
self?.presentError(error)
|
||||
}
|
||||
}
|
||||
case .failure(let error):
|
||||
self?.presentError(error)
|
||||
self.presentError(error)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user