mirror of
https://github.com/zulip/zulip.git
synced 2025-11-10 08:56:10 +00:00
drafts: Pass draft_id to compose_actions.start as part of compose_args.
This will allow us to remove some duplicated compose box code that was previously inside restore_draft. Co-authored-by: N-Shar-ma <bablinaneh@gmail.com>
This commit is contained in:
@@ -253,15 +253,15 @@ export function start(msg_type, opts) {
|
||||
compose_state.message_content(opts.content);
|
||||
}
|
||||
|
||||
if (opts.draft_id) {
|
||||
$("#compose-textarea").data("draft-id", opts.draft_id);
|
||||
}
|
||||
|
||||
compose_state.set_message_type(msg_type);
|
||||
|
||||
// Show either stream/topic fields or "You and" field.
|
||||
show_compose_box(msg_type, opts);
|
||||
|
||||
if (opts.draft_id) {
|
||||
$("#compose-textarea").data("draft-id", opts.draft_id);
|
||||
}
|
||||
|
||||
// Show a warning if topic is resolved
|
||||
compose_validate.warn_if_topic_resolved(true);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user