From ff589f954c26486b8ed77f5afaf12c23d7883fa7 Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Thu, 22 Oct 2026 18:53:27 -0700 Subject: [PATCH] Keep composer text when continuing a task --- mac/Sources/Byre/Drafts.swift | 9 --------- 1 file changed, 9 deletions(-) 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