From 795b2ba14e094fb13540a822cefa72fe35593841 Mon Sep 17 00:00:00 2001 From: Sanchit Sharma Date: Sun, 7 Jul 2024 19:01:08 +0530 Subject: [PATCH] do_deactivate_stream: Remove unnecessary mutations. Streams should not be marked as private, and subscribers of the deactivated stream should not be removed. Update the confirmation message when archiving a stream. --- .../confirm_deactivate_stream.hbs | 13 +- zerver/actions/message_send.py | 12 +- zerver/actions/streams.py | 123 +++++------------- zerver/lib/streams.py | 8 +- zerver/openapi/curl_param_value_generators.py | 2 +- zerver/tests/test_events.py | 4 - zerver/tests/test_subs.py | 105 ++++++--------- 7 files changed, 102 insertions(+), 165 deletions(-) diff --git a/web/templates/confirm_dialog/confirm_deactivate_stream.hbs b/web/templates/confirm_dialog/confirm_deactivate_stream.hbs index c420712735..230f572a09 100644 --- a/web/templates/confirm_dialog/confirm_deactivate_stream.hbs +++ b/web/templates/confirm_dialog/confirm_deactivate_stream.hbs @@ -1,9 +1,20 @@

{{#tr}} - Archiving channel will immediately unsubscribe everyone. This action cannot be undone. + Archiving this channel will: {{#*inline "z-stream"}}{{{stream_name_with_privacy_symbol_html}}}{{/inline}} {{/tr}}

+

+

+ {{#tr}} + Users can still search for messages in archived channels.
+ This action cannot be undone. + {{/tr}} +

{{#if is_announcement_stream}}

{{#tr}}Archiving this channel will also disable settings that were configured to use this channel:{{/tr}}