compose: Add privacy icons to the stream dropdown menu.

These were previously used in the input form field and
this commit removes the code that supported that and
replaces it by using existing dropdown_widget functionality
to display the icons in the compose dropdown.
This commit is contained in:
evykassirer
2023-02-06 16:25:45 -08:00
committed by Tim Abbott
parent 8a2455a294
commit 02ae5818ae
5 changed files with 7 additions and 47 deletions

View File

@@ -208,7 +208,7 @@ export function complete_starting_tasks(msg_type, opts) {
maybe_scroll_up_selected_message();
compose_fade.start_compose(msg_type);
stream_bar.decorate(opts.stream, $("#compose-stream-recipient .message_header_stream"), true);
stream_bar.decorate(opts.stream, $("#compose-stream-recipient .message_header_stream"));
$(document).trigger(new $.Event("compose_started.zulip", opts));
update_placeholder_text();
update_narrow_to_recipient_visibility();
@@ -332,7 +332,7 @@ export function start(msg_type, opts) {
const $stream_header_colorblock = $("#compose_stream_selection_dropdown").find(
".stream_header_colorblock",
);
stream_bar.decorate(opts.stream, $stream_header_colorblock, false);
stream_bar.decorate(opts.stream, $stream_header_colorblock);
// We set the stream/topic/private_message_recipient
// unconditionally here, which assumes the caller will have passed