Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
compose_reply: Fix msg_type being not defined triggering errors.
Aman Agrawalc54e84cb9b36
diff --git a/web/src/compose_reply.js b/web/src/compose_reply.jsindex 9e88169c0e7..5371b8fcede 100644--- a/web/src/compose_reply.js+++ b/web/src/compose_reply.js@@ -32,7 +32,9 @@ export function respond_to_message(opts) {} else if (inbox_util.is_visible()) {const message_opts = inbox_ui.get_focused_row_message();if (message_opts.message === undefined) {- compose_actions.start(message_opts.msg_type, {+ // If the user is not focused on inbox header, msg_type+ // is not defined, so we open empty compose with nothing prefilled.+ compose_actions.start(message_opts.msg_type ?? "stream", {trigger: "inbox_nofocus",...message_opts,});