(threadId: string, messageId?: string)
| 401 | } |
| 402 | |
| 403 | async function updateThreadResolution(threadId: string, messageId?: string) { |
| 404 | setThreads((threads) => { |
| 405 | return threads.map((thread) => { |
| 406 | if (thread.id === threadId) { |
| 407 | return { ...thread, resolutionId: messageId }; |
| 408 | } |
| 409 | return thread; |
| 410 | }); |
| 411 | }); |
| 412 | |
| 413 | return api |
| 414 | .updateThread({ |
| 415 | id: threadId, |
| 416 | resolutionId: messageId || null, |
| 417 | accountId: settings.communityId, |
| 418 | }) |
| 419 | .catch((_) => { |
| 420 | Toast.error('Failed to mark as resolution'); |
| 421 | }); |
| 422 | } |
| 423 | |
| 424 | async function sendReaction({ |
| 425 | threadId, |
nothing calls this directly
no test coverage detected