()
| 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( |
no test coverage detected