MCPcopy Index your code
hub / github.com/Linen-dev/linen.dev / updateThreadResolution

Function updateThreadResolution

apps/web/ui/ChannelView/index.tsx:403–422  ·  view source on GitHub ↗
(threadId: string, messageId?: string)

Source from the content-addressed store, hash-verified

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,

Callers

nothing calls this directly

Calls 3

mapMethod · 0.80
updateThreadMethod · 0.65
errorMethod · 0.65

Tested by

no test coverage detected