Correctly delete last feed in a folder.
This commit is contained in:
parent
f1ab7115b0
commit
7e32c9f551
|
@ -381,12 +381,8 @@ final class ReaderAPIAccountDelegate: AccountDelegate {
|
||||||
}
|
}
|
||||||
|
|
||||||
func removeWebFeed(for account: Account, with feed: WebFeed, from container: Container, completion: @escaping (Result<Void, Error>) -> Void) {
|
func removeWebFeed(for account: Account, with feed: WebFeed, from container: Container, completion: @escaping (Result<Void, Error>) -> Void) {
|
||||||
if feed.folderRelationship?.count ?? 0 > 1 {
|
account.clearWebFeedMetadata(feed)
|
||||||
deleteTagging(for: account, with: feed, from: container, completion: completion)
|
deleteSubscription(for: account, with: feed, from: container, completion: completion)
|
||||||
} else {
|
|
||||||
account.clearWebFeedMetadata(feed)
|
|
||||||
deleteSubscription(for: account, with: feed, from: container, completion: completion)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func moveWebFeed(for account: Account, with feed: WebFeed, from: Container, to: Container, completion: @escaping (Result<Void, Error>) -> Void) {
|
func moveWebFeed(for account: Account, with feed: WebFeed, from: Container, to: Container, completion: @escaping (Result<Void, Error>) -> Void) {
|
||||||
|
|
Loading…
Reference in New Issue