(key: string)
| 108 | |
| 109 | // Check if a key is a new chat draft (starts with draft-) |
| 110 | export function isNewChatDraftKey(key: string): boolean { |
| 111 | return key.startsWith(DRAFT_ID_PREFIX) |
| 112 | } |
| 113 | |
| 114 | // Check if a key is a sub-chat draft (contains :) |
| 115 | export function isSubChatDraftKey(key: string): boolean { |