(chatId: string, subChatId: string)
| 174 | |
| 175 | // Get sub-chat draft text |
| 176 | export function getSubChatDraft(chatId: string, subChatId: string): string | null { |
| 177 | const globalDrafts = loadGlobalDrafts() |
| 178 | const key = getSubChatDraftKey(chatId, subChatId) |
| 179 | const draft = globalDrafts[key] as DraftContent | undefined |
| 180 | return draft?.text || null |
| 181 | } |
| 182 | |
| 183 | // Save sub-chat draft |
| 184 | export function saveSubChatDraft( |
nothing calls this directly
no test coverage detected