(draftId: string)
| 160 | |
| 161 | // Mark a draft as visible (called when user navigates away from the form) |
| 162 | export function markDraftVisible(draftId: string): void { |
| 163 | const globalDrafts = loadGlobalDrafts() |
| 164 | if (globalDrafts[draftId]) { |
| 165 | ;(globalDrafts[draftId] as NewChatDraft).isVisible = true |
| 166 | saveGlobalDrafts(globalDrafts) |
| 167 | } |
| 168 | } |
| 169 | |
| 170 | // Get sub-chat draft key |
| 171 | export function getSubChatDraftKey(chatId: string, subChatId: string): string { |
no test coverage detected