recent_view: Fix right arrow not working on read DM rows.

Fixed by letting col_focus exceed max selectable rows in this case
and having it reset back to 0.
This commit is contained in:
Aman Agrawal
2024-06-24 16:58:07 +00:00
committed by Tim Abbott
parent a83b882705
commit 9e0a3bebfd

View File

@@ -1429,9 +1429,7 @@ function left_arrow_navigation(row: number, col: number): void {
}
function right_arrow_navigation(row: number, col: number): void {
const type = get_row_type(row);
if (type === "stream" && col === 1 && !has_unread(row)) {
if (col === 1 && !has_unread(row)) {
col_focus += 1;
}