(threadId?: string)
| 218 | }, []); |
| 219 | |
| 220 | function onSelectThread(threadId?: string) { |
| 221 | setCurrentThreadId(threadId); |
| 222 | if (threadId) { |
| 223 | setTimeout(() => { |
| 224 | const node = document.getElementById( |
| 225 | `thread-message-form-${threadId}-textarea` |
| 226 | ); |
| 227 | if (node) { |
| 228 | node.focus(); |
| 229 | } |
| 230 | }, 0); |
| 231 | } |
| 232 | } |
| 233 | |
| 234 | async function deleteMessage(messageId: string) { |
| 235 | setThreads((threads) => { |
no outgoing calls
no test coverage detected