(draftKey: string)
| 167 | } |
| 168 | |
| 169 | export function clearMessageInputDraft(draftKey: string): void { |
| 170 | draftTextCache.delete(draftKey) |
| 171 | pendingPersistDrafts.delete(draftKey) |
| 172 | if (typeof window === "undefined") return |
| 173 | |
| 174 | try { |
| 175 | localStorage.removeItem(storageKeyForDraftKey(draftKey)) |
| 176 | } catch { |
| 177 | /* ignore */ |
| 178 | } |
| 179 | } |
| 180 | |
| 181 | /** |
| 182 | * Result of loading a v2 draft: a parsed composer document, a legacy v1 Markdown |
no test coverage detected