Don't store account.unreadCount in Settings.odb. Don’t rewrite AccountData.plist when feed.contentHash changes.
This commit is contained in:
parent
aa94bc4c91
commit
b8546d8e8b
|
@ -78,7 +78,6 @@ public final class Account: DisplayNameProvider, UnreadCountProvider, Container,
|
|||
didSet {
|
||||
if unreadCount != oldValue {
|
||||
postUnreadCountDidChangeNotification()
|
||||
settingsTable.set(unreadCount, name: SettingsKey.unreadCount)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -116,7 +116,6 @@ public final class Feed: DisplayNameProvider, UnreadCountProvider, Hashable {
|
|||
self.faviconURL = dictionary[Key.faviconURL] as? String
|
||||
self.name = dictionary[Key.name] as? String
|
||||
self.editedName = dictionary[Key.editedName] as? String
|
||||
// self.contentHash = dictionary[Key.contentHash] as? String
|
||||
|
||||
if let conditionalGetInfoDictionary = dictionary[Key.conditionalGetInfo] as? [String: String] {
|
||||
self.conditionalGetInfo = HTTPConditionalGetInfo(dictionary: conditionalGetInfoDictionary)
|
||||
|
@ -160,9 +159,6 @@ public final class Feed: DisplayNameProvider, UnreadCountProvider, Hashable {
|
|||
if let authorsArray = authors?.diskArray() {
|
||||
d[Key.authors] = authorsArray
|
||||
}
|
||||
// if let contentHash = contentHash {
|
||||
// d[Key.contentHash] = contentHash
|
||||
// }
|
||||
if let conditionalGetInfo = conditionalGetInfo {
|
||||
d[Key.conditionalGetInfo] = conditionalGetInfo.dictionary
|
||||
}
|
||||
|
|
|
@ -80,7 +80,6 @@ extension LocalAccountRefresher: DownloadSessionDelegate {
|
|||
}
|
||||
|
||||
feed.contentHash = dataHash
|
||||
feed.account?.dirty = true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue