Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
compose-actions: Stop compose box load for invalid users with any trigger.
Lauryn Menard54ad2f5266ac
diff --git a/static/js/compose_actions.js b/static/js/compose_actions.jsindex a0d0a9c7f6a..9874266a2a9 100644--- a/static/js/compose_actions.js+++ b/static/js/compose_actions.js@@ -632,9 +632,11 @@ export function on_narrow(opts) {if (narrow_state.narrowed_by_pm_reply()) {opts = fill_in_opts_from_current_narrowed_view("private", opts);- // Do not open compose box if triggered by search and invalid recipient- // is present.- if (opts.trigger === "search" && !opts.private_message_recipient) {+ // Do not open compose box if an invalid recipient is present.+ if (!opts.private_message_recipient) {+ if (compose_state.composing()) {+ cancel();+ }return;}// Do not open compose box if organization has disabled sending