Keep composer text when continuing a task
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user