hotkey: Add y hotkey support for inbox and recent view.

This commit is contained in:
Aman Agrawal
2025-07-16 16:44:01 +05:30
committed by Tim Abbott
parent 2223ab176c
commit 35c0de27fe
2 changed files with 31 additions and 13 deletions

View File

@@ -1422,6 +1422,10 @@ export function get_focused_row_message(): {message?: Message | undefined} & (
}
const stream_id = Number($focused_row.attr("data-stream-id"));
if (Number.isNaN(stream_id)) {
// This is a channel folder header.
return {};
}
compose_state.set_compose_recipient_id(stream_id);
return {message: undefined, msg_type: "stream", stream_id};
}