Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

streams: Fix sending notice for topics policy for archived channels.

Sahil Batra4aeb2a533d86
diff --git a/zerver/actions/streams.py b/zerver/actions/streams.py
index 864f3d381c4..a2dd27860a8 100644
--- a/zerver/actions/streams.py
+++ b/zerver/actions/streams.py
@@ -1774,6 +1774,7 @@ def do_set_stream_property(stream: Stream, name: str, value: Any, acting_user: U
sender,
stream,
NOTIFICATION_MESSAGES[name],
+ archived_channel_notice=stream.deactivated,
)
diff --git a/zerver/tests/test_subs.py b/zerver/tests/test_subs.py
index af9b479ebc0..31a15ea308e 100644
--- a/zerver/tests/test_subs.py
+++ b/zerver/tests/test_subs.py
@@ -1518,6 +1518,10 @@ class StreamAdminTest(ZulipTestCase):
{"is_private": orjson.dumps(False).decode()},
f"@_**Desdemona|{desdemona.id}** changed the [access permissions]",
),
+ (
+ {"topics_policy": StreamTopicsPolicyEnum.allow_empty_topic.name},
+ f'@_**Desdemona|{desdemona.id}** changed the "Allow posting to the *general chat* topic?" setting',
+ ),
]
for param, notice in param_to_notice_list: