( parentChatId: string | null, subChatId: string )
| 306 | * Hook to get a specific sub-chat draft |
| 307 | */ |
| 308 | export function useSubChatDraft( |
| 309 | parentChatId: string | null, |
| 310 | subChatId: string |
| 311 | ): string | null { |
| 312 | const draftsCache = useSubChatDraftsCache() |
| 313 | |
| 314 | if (!parentChatId) return null |
| 315 | const key = getSubChatDraftKey(parentChatId, subChatId) |
| 316 | return draftsCache[key] || null |
| 317 | } |
| 318 | |
| 319 | // ============================================ |
| 320 | // Attachment persistence utilities |
nothing calls this directly
no test coverage detected