(
conversationId: string,
updater: (conversation: Conversation) => Conversation
)
| 495 | } |
| 496 | |
| 497 | function updateConversation( |
| 498 | conversationId: string, |
| 499 | updater: (conversation: Conversation) => Conversation |
| 500 | ) { |
| 501 | setConversations((current) => |
| 502 | current.map((conversation) => |
| 503 | conversation.id === conversationId ? updater(conversation) : conversation |
| 504 | ) |
| 505 | ) |
| 506 | } |
| 507 | |
| 508 | function setConversationMessages( |
| 509 | conversationId: string, |
no outgoing calls
no test coverage detected