Fix bug where restoring a feed in a folder could leave the feed in the account container

This commit is contained in:
Maurice Parker 2019-05-16 10:33:58 -05:00
parent 3986e00bf7
commit d8e6355b1e
1 changed files with 8 additions and 2 deletions

View File

@ -885,12 +885,18 @@ private extension FeedbinAccountDelegate {
if editedName != nil {
DispatchQueue.main.async {
folder.addFeed(feed)
BatchUpdate.shared.perform {
account.removeFeed(feed)
folder.addFeed(feed)
}
}
self?.processRestoredFeedName(for: account, feed: feed, editedName: editedName!, completion: completion)
} else {
DispatchQueue.main.async {
folder.addFeed(feed)
BatchUpdate.shared.perform {
account.removeFeed(feed)
folder.addFeed(feed)
}
completion(.success(()))
}
}