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:
Brent Simmons 2017-07-29 11:26:19 -07:00
parent f293d5715c
commit 961454a447
1 changed files with 8 additions and 2 deletions

View File

@ -196,9 +196,15 @@ private extension AttachmentsManager {
cachedAttachments[attachment.databaseID] = attachment
}
func uncacheAttachmentWithDatabaseID(_ databaseID: String) {
func uncacheAttachments(_ attachments: Set<Attachment>) {
cachedAttachments[databaseID] = nil
attachments.removeO
attachments.forEach { uncacheAttachment($0) }
}
func uncacheAttachment(_ attachment: Attachment) {
cachedAttachments[attachment.databaseID] = nil
}
func saveAttachmentsForArticle(_ article: Article, database: FMDatabase) {