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

Function callback

apps/web/ui/ChannelView/TopicView/index.tsx:205–219  ·  view source on GitHub ↗
(topic: SerializedTopic)

Source from the content-addressed store, hash-verified

203
204 useEffect(() => {
205 const callback = (topic: SerializedTopic) => {
206 selectThread(topic.threadId, false);
207
208 const node = document.getElementById(
209 `channel-grid-item-${topic.messageId}`
210 );
211
212 const layout = document.getElementById('sidebar-layout-left');
213 const footer = document.getElementById('chat-layout-footer');
214 if (node && layout && footer) {
215 node.scrollIntoView({ block: 'end' });
216 const offset = footer.clientHeight;
217 layout.scrollTop = layout.scrollTop + offset;
218 }
219 };
220
221 EventEmitter.on('navbar:topic:clicked', callback);
222

Callers 13

initializeBotFunction · 0.50
index.jsFile · 0.50
emitFunction · 0.50
regexpFunction · 0.50
deepFunction · 0.50
deepFunction · 0.50
walkFunction · 0.50
index.tsFile · 0.50
magicLinkStrategyFunction · 0.50
MatrixViewFunction · 0.50
handleSubmitFunction · 0.50
useAsyncFunction · 0.50

Calls 1

selectThreadFunction · 0.70

Tested by

no test coverage detected