Fix bug where restoring a feed in a folder could leave the feed in the account container
This commit is contained in:
parent
3986e00bf7
commit
d8e6355b1e
|
@ -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(()))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue