From 1c1b911a421584c42405c138d35824abd4cb8a0b Mon Sep 17 00:00:00 2001 From: Sahil Batra Date: Fri, 6 Jan 2023 12:31:03 +0530 Subject: [PATCH] stream_create: Fix comments in show_new_stream_modal. We fix the comment stating that announce_stream setting is set on "on", as we handle it differently now in update_announce_stream_state. --- static/js/stream_create.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/stream_create.js b/static/js/stream_create.js index a57b945add..b635d59759 100644 --- a/static/js/stream_create.js +++ b/static/js/stream_create.js @@ -316,8 +316,7 @@ export function show_new_stream_modal() { // Select the first visible and enabled choice for stream privacy. $("#make-invite-only input:visible:not([disabled])").first().prop("checked", true); - // Make the options default to the same each time: - // "announce stream" on. + // Make the options default to the same each time $("#stream_creation_form .stream-message-retention-days-input").hide(); $("#stream_creation_form select[name=stream_message_retention_setting]").val("realm_default"); @@ -330,6 +329,7 @@ export function show_new_stream_modal() { } }); + // set default state for "announce stream" option. update_announce_stream_state(); clear_error_display(); }