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.

zulip_news: Update the group DM sent initially to admins.

Prakhar Pratyushb9d9676b4378
diff --git a/zerver/lib/zulip_update_announcements.py b/zerver/lib/zulip_update_announcements.py
index 94df79fa59e..655210e856f 100644
--- a/zerver/lib/zulip_update_announcements.py
+++ b/zerver/lib/zulip_update_announcements.py
@@ -74,21 +74,22 @@ def internal_prep_group_direct_message_for_old_realm(
topic_name = str(realm.ZULIP_UPDATE_ANNOUNCEMENTS_TOPIC_NAME)
if realm.zulip_update_announcements_stream is None:
content = """\
-You can now [configure]({organization_settings_url}) a stream where Zulip \
-will send [updates]({zulip_update_announcements_help_url}) about new Zulip features. \
-These notifications are currently turned off in your organization.
+Zulip now supports [configuring]({organization_settings_url}) a stream where Zulip will \
+send [updates]({zulip_update_announcements_help_url}) about new Zulip features. \
+These notifications are currently turned off in your organization. If you configure \
+a stream within one week, your organization will not miss any update messages.
""".format(
zulip_update_announcements_help_url="/help/configure-automated-notices#zulip-update-announcements",
organization_settings_url="/#organization/organization-settings",
)
else:
content = """\
-Users in your organization will now receive [updates]({zulip_update_announcements_help_url}) \
+Starting tomorrow, users in your organization will receive [updates]({zulip_update_announcements_help_url}) \
about new Zulip features in #**{zulip_update_announcements_stream}>{topic_name}**.
If you like, you can [configure]({organization_settings_url}) a different stream for \
-these updates (and [move]({move_content_another_stream_help_url}) the initial updates there), \
-or [turn this feature off]({organization_settings_url}) altogether.
+these updates (and [move]({move_content_another_stream_help_url}) any updates sent before the \
+configuration change), or [turn this feature off]({organization_settings_url}) altogether.
""".format(
zulip_update_announcements_help_url="/help/configure-automated-notices#zulip-update-announcements",
zulip_update_announcements_stream=realm.zulip_update_announcements_stream.name,
diff --git a/zerver/tests/test_zulip_update_announcements.py b/zerver/tests/test_zulip_update_announcements.py
index 5638dde53b1..75878d8200b 100644
--- a/zerver/tests/test_zulip_update_announcements.py
+++ b/zerver/tests/test_zulip_update_announcements.py
@@ -147,7 +147,7 @@ class ZulipUpdateAnnouncementsTest(ZulipTestCase):
)
self.assertEqual(realm.zulip_update_announcements_level, 0)
self.assertIn(
- "Users in your organization will now receive "
+ "Starting tomorrow, users in your organization will receive "
"[updates](/help/configure-automated-notices#zulip-update-announcements) about new Zulip features in "
f"#**{realm.zulip_update_announcements_stream}>{realm.ZULIP_UPDATE_ANNOUNCEMENTS_TOPIC_NAME}**",
group_direct_message.content,