diff --git a/mac/Sources/Byre/Drafts.swift b/mac/Sources/Byre/Drafts.swift index f585353..fa9db6f 100644 --- a/mac/Sources/Byre/Drafts.swift +++ b/mac/Sources/Byre/Drafts.swift @@ -139,15 +139,6 @@ final class Drafts { func prune(_ store: Store) { var changed = false - for key in Set(composerTexts.keys).union(composerImages.keys).union(lostImages.keys) { - let taskId = key.hasPrefix("message:") ? String(key.dropFirst("message:".count)) : key - if taskId != "lead" && store.findTask(taskId)?.status != .active { - composerTexts[key] = nil - composerImages[key] = nil - lostImages[key] = nil - changed = true - } - } for taskId in comments.keys where store.findTask(taskId)?.status != .active { comments[taskId] = nil changed = true