mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 15:03:34 +00:00
compose_state: Break out stream_name() into separate getter and setter.
This code is equivalent, because the keep_leading_whitespace parameter of get_or_set was never used for the stream name. This addresses an open TODO and makes the code more readable.
This commit is contained in:
@@ -329,7 +329,7 @@ export function start(msg_type, opts) {
|
||||
//
|
||||
// TODO: Move these into a conditional on message_type, using an
|
||||
// explicit "clear" function for compose_state.
|
||||
compose_state.stream_name(opts.stream);
|
||||
compose_state.set_stream_name(opts.stream);
|
||||
compose_state.topic(opts.topic);
|
||||
|
||||
// Set the recipients with a space after each comma, so it looks nice.
|
||||
|
||||
Reference in New Issue
Block a user