Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

compose_actions: Add comment about spread syntax overwrite behavior.

YashRE42555f80c34b05
diff --git a/static/js/compose_actions.js b/static/js/compose_actions.js
index 5559132b25d..3863aa4b0a3 100644
--- a/static/js/compose_actions.js
+++ b/static/js/compose_actions.js
@@ -182,6 +182,8 @@ function fill_in_opts_from_current_narrowed_view(msg_type, opts) {
// Set default parameters based on the current narrowed view.
...narrow_state.set_compose_defaults(),
+ // Set parameters based on provided opts, overwriting
+ // those set based on current narrowed view, if necessary.
...opts,
};
}