Keep composer text when continuing a task

This commit is contained in:
Ian Gulliver
2026-10-22 18:53:27 -07:00
parent e8c1c045f2
commit ff589f954c
-9
View File
@@ -139,15 +139,6 @@ final class Drafts {
func prune(_ store: Store) { func prune(_ store: Store) {
var changed = false 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 { for taskId in comments.keys where store.findTask(taskId)?.status != .active {
comments[taskId] = nil comments[taskId] = nil
changed = true changed = true