Clear the feed metadata on Feedbin feed delete

This commit is contained in:
Maurice Parker 2019-05-31 07:47:05 -05:00
parent d602f894f6
commit 10296a1b74
2 changed files with 5 additions and 0 deletions

View File

@ -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()

View File

@ -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)
} }
} }