Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
inbox_ui: Minor refactor.
Aman Agrawalfa9165236dc6
diff --git a/web/src/inbox_ui.ts b/web/src/inbox_ui.tsindex 66baa4700c5..8551971d7ae 100644--- a/web/src/inbox_ui.ts+++ b/web/src/inbox_ui.ts@@ -1434,11 +1434,11 @@ export function get_focused_row_message(): {message?: Message | undefined} & (return {message: undefined, msg_type: "private"};}- const stream_id = Number($focused_row.attr("data-stream-id"));- if (Number.isNaN(stream_id)) {+ if ($focused_row.hasClass("inbox-folder")) {// This is a channel folder header.return {};}+ const stream_id = Number($focused_row.attr("data-stream-id"));compose_state.set_compose_recipient_id(stream_id);return {message: undefined, msg_type: "stream", stream_id};}