(
conversationId: string,
updates: Partial<Conversation>,
)
| 809 | |
| 810 | // Additional optimized helper functions |
| 811 | function updateConversation( |
| 812 | conversationId: string, |
| 813 | updates: Partial<Conversation>, |
| 814 | ): void { |
| 815 | if (!state.conversations[conversationId]) return |
| 816 | for (const [key, value] of Object.entries(updates)) { |
| 817 | setState( |
| 818 | 'conversations', |
| 819 | conversationId, |
| 820 | key as keyof Conversation, |
| 821 | value, |
| 822 | ) |
| 823 | } |
| 824 | } |
| 825 | |
| 826 | function updateMessage( |
| 827 | conversationId: string, |
no outgoing calls
no test coverage detected