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

Function selectPreviousThread

apps/web/ui/ChannelView/index.tsx:132–141  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

130 }
131 }
132 function selectPreviousThread() {
133 const index = threads.findIndex(
134 (thread) => thread.id === currentThreadId
135 );
136 if (index > 0) {
137 const threadId = threads[index - 1].id;
138 setCurrentThreadId(threadId);
139 scrollToBottomThread(threadId);
140 }
141 }
142
143 function selectNextThread() {
144 const index = threads.findIndex(

Callers 1

onKeyUpFunction · 0.85

Calls 1

scrollToBottomThreadFunction · 0.85

Tested by

no test coverage detected