recent_topics: Check if at last row before moving down.

This looks a regression from some of the recent additions to
recent topics.
This commit is contained in:
Aman Agrawal 2022-10-19 18:39:54 +00:00 committed by Tim Abbott
parent 198f31fbea
commit eb1c3bc293
1 changed files with 3 additions and 1 deletions

View File

@ -863,8 +863,10 @@ function up_arrow_navigation(row, col) {
}
function down_arrow_navigation(row, col) {
if (is_focus_at_last_table_row()) {
return;
}
const type = get_row_type(row);
if (type === "stream" && col === 2 && !has_unread(row + 1)) {
col_focus = 1;
}