MCPcopy Create free account
hub / github.com/Linen-dev/linen.dev / starThread

Function starThread

apps/web/ui/ChannelView/index.tsx:386–401  ·  view source on GitHub ↗
(threadId: string)

Source from the content-addressed store, hash-verified

384 }
385
386 async function starThread(threadId: string) {
387 return api
388 .starThread({ threadId, communityId: currentCommunity.id })
389 .then(() => {
390 Toast.success('Starred successfully.');
391 })
392 .catch((exception) => {
393 if (exception.status === 409) {
394 Toast.info('Thread is already starred.');
395 } else {
396 Toast.error(
397 exception?.message || 'Something went wrong. Please try again.'
398 );
399 }
400 });
401 }
402
403 async function updateThreadResolution(threadId: string, messageId?: string) {
404 setThreads((threads) => {

Callers

nothing calls this directly

Calls 4

successMethod · 0.80
starThreadMethod · 0.65
infoMethod · 0.65
errorMethod · 0.65

Tested by

no test coverage detected