(threadId: string)
| 120 | return false; |
| 121 | } |
| 122 | function scrollToBottomThread(threadId: string) { |
| 123 | const node = document.getElementById(threadId); |
| 124 | const layout = document.getElementById('sidebar-layout-left'); |
| 125 | const footer = document.getElementById('chat-layout-footer'); |
| 126 | if (node && layout && footer) { |
| 127 | node.scrollIntoView({ block: 'end' }); |
| 128 | const offset = footer.clientHeight; |
| 129 | layout.scrollTop = layout.scrollTop + offset; |
| 130 | } |
| 131 | } |
| 132 | function selectPreviousThread() { |
| 133 | const index = threads.findIndex( |
| 134 | (thread) => thread.id === currentThreadId |
no outgoing calls
no test coverage detected