Clear the feed metadata on Feedbin feed delete
This commit is contained in:
parent
d602f894f6
commit
10296a1b74
|
@ -427,6 +427,10 @@ public final class Account: DisplayNameProvider, UnreadCountProvider, Container,
|
||||||
delegate.restoreFolder(for: self, folder: folder, completion: completion)
|
delegate.restoreFolder(for: self, folder: folder, completion: completion)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func clearFeedMetadata(_ feed: Feed) {
|
||||||
|
feedMetadata[feed.url] = nil
|
||||||
|
}
|
||||||
|
|
||||||
func addFolder(_ folder: Folder) {
|
func addFolder(_ folder: Folder) {
|
||||||
folders!.insert(folder)
|
folders!.insert(folder)
|
||||||
postChildrenDidChangeNotification()
|
postChildrenDidChangeNotification()
|
||||||
|
|
|
@ -347,6 +347,7 @@ final class FeedbinAccountDelegate: AccountDelegate {
|
||||||
if feed.folderRelationship?.count ?? 0 > 1 {
|
if feed.folderRelationship?.count ?? 0 > 1 {
|
||||||
deleteTagging(for: account, with: feed, from: container, completion: completion)
|
deleteTagging(for: account, with: feed, from: container, completion: completion)
|
||||||
} else {
|
} else {
|
||||||
|
account.clearFeedMetadata(feed)
|
||||||
deleteSubscription(for: account, with: feed, from: container, completion: completion)
|
deleteSubscription(for: account, with: feed, from: container, completion: completion)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue