mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
narrow_state: Make set_compose_defaults return opts.
This commit is contained in:
@@ -164,7 +164,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(default_opts);
|
||||
var compose_opts = narrow_state.set_compose_defaults();
|
||||
default_opts = _.extend(default_opts, compose_opts);
|
||||
opts = _.extend(default_opts, opts);
|
||||
return opts;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user