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

Function showEditThreadModal

apps/web/ui/ChannelView/ForumView/index.tsx:374–384  ·  view source on GitHub ↗
(threadId: string, messageId: string)

Source from the content-addressed store, hash-verified

372 );
373
374 function showEditThreadModal(threadId: string, messageId: string) {
375 const thread = threads.find(({ id }) => id === threadId);
376 if (thread) {
377 const message = thread.messages.find(
378 (message) => message.id === messageId
379 );
380 setEditedMessage(message);
381 setEditedThread(thread);
382 setModal(ModalView.EDIT_THREAD);
383 }
384 }
385
386 const debouncedCreateMessage = useCallback(
387 debounce(api.createMessage, 100),

Callers

nothing calls this directly

Calls 1

findMethod · 0.45

Tested by

no test coverage detected