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

Function onSelectThread

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

Source from the content-addressed store, hash-verified

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) => {

Callers 6

selectThreadFunction · 0.85
ChannelFunction · 0.85
selectThreadFunction · 0.85
ChannelFunction · 0.85
selectThreadFunction · 0.85
ChannelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected