mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
I don't remember what I was doing, but I should commit it. Back from vacation now. Which was lovely. (At the beach, with family.)
This commit is contained in:
@@ -196,9 +196,15 @@ private extension AttachmentsManager {
|
||||
cachedAttachments[attachment.databaseID] = attachment
|
||||
}
|
||||
|
||||
func uncacheAttachmentWithDatabaseID(_ databaseID: String) {
|
||||
func uncacheAttachments(_ attachments: Set<Attachment>) {
|
||||
|
||||
attachments.removeO
|
||||
attachments.forEach { uncacheAttachment($0) }
|
||||
}
|
||||
|
||||
func uncacheAttachment(_ attachment: Attachment) {
|
||||
|
||||
cachedAttachments[databaseID] = nil
|
||||
cachedAttachments[attachment.databaseID] = nil
|
||||
}
|
||||
|
||||
func saveAttachmentsForArticle(_ article: Article, database: FMDatabase) {
|
||||
|
||||
Reference in New Issue
Block a user