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)
|
||||
}
|
||||
|
||||
func clearFeedMetadata(_ feed: Feed) {
|
||||
feedMetadata[feed.url] = nil
|
||||
}
|
||||
|
||||
func addFolder(_ folder: Folder) {
|
||||
folders!.insert(folder)
|
||||
postChildrenDidChangeNotification()
|
||||
|
|
|
@ -347,6 +347,7 @@ final class FeedbinAccountDelegate: AccountDelegate {
|
|||
if feed.folderRelationship?.count ?? 0 > 1 {
|
||||
deleteTagging(for: account, with: feed, from: container, completion: completion)
|
||||
} else {
|
||||
account.clearFeedMetadata(feed)
|
||||
deleteSubscription(for: account, with: feed, from: container, completion: completion)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue