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:
parent
f293d5715c
commit
961454a447
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue