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.

messages: Update new user signup notification.

shashank-230023bf04ffab59c
diff --git a/zerver/actions/create_user.py b/zerver/actions/create_user.py
index af7dc0b2117..bdbe09de85f 100644
--- a/zerver/actions/create_user.py
+++ b/zerver/actions/create_user.py
@@ -106,7 +106,7 @@ def notify_new_user(user_profile: UserProfile) -> None:
is_first_user = user_count == 1
if not is_first_user:
with override_language(user_profile.realm.default_language):
- message = _("{user} just signed up for Zulip. (total: {user_count})").format(
+ message = _("{user} joined this organization.").format(
user=silent_mention_syntax_for_user(user_profile), user_count=user_count
)
diff --git a/zerver/tests/test_events.py b/zerver/tests/test_events.py
index 6c8e5a70390..0a29b29e26c 100644
--- a/zerver/tests/test_events.py
+++ b/zerver/tests/test_events.py
@@ -1583,7 +1583,7 @@ class NormalActionsTest(BaseAction):
check_message("events[0]", events[0])
self.assertIn(
- f'data-user-id="{new_user_profile.id}">test1_zulip.com</span> just signed up for Zulip',
+ f'data-user-id="{new_user_profile.id}">test1_zulip.com</span> joined this organization.',
events[0]["message"]["content"],
)
@@ -1609,7 +1609,7 @@ class NormalActionsTest(BaseAction):
check_message("events[0]", events[0])
self.assertIn(
- f'data-user-id="{new_user_profile.id}">test1_zulip.com</span> just signed up for Zulip',
+ f'data-user-id="{new_user_profile.id}">test1_zulip.com</span> joined this organization',
events[0]["message"]["content"],
)
diff --git a/zerver/tests/test_invite.py b/zerver/tests/test_invite.py
index 2588ea7c83e..761ad295cf8 100644
--- a/zerver/tests/test_invite.py
+++ b/zerver/tests/test_invite.py
@@ -962,7 +962,7 @@ class InviteUserTest(InviteUserBase):
self.assertEqual(signups_stream_msg.sender.email, "[email protected]")
self.assertTrue(
signups_stream_msg.content.startswith(
- f"@_**alice_zulip.com|{invitee_profile.id}** just signed up",
+ f"@_**alice_zulip.com|{invitee_profile.id}** joined this organization",
)
)
diff --git a/zerver/tests/test_new_users.py b/zerver/tests/test_new_users.py
index 14e90cf88ed..4d371eaa836 100644
--- a/zerver/tests/test_new_users.py
+++ b/zerver/tests/test_new_users.py
@@ -286,7 +286,7 @@ class TestNotifyNewUser(ZulipTestCase):
actual_stream = Stream.objects.get(id=message.recipient.type_id)
self.assertEqual(actual_stream.name, Realm.INITIAL_PRIVATE_STREAM_NAME)
self.assertIn(
- f"@_**Cordelia, Lear's daughter|{new_user.id}** just signed up for Zulip.",
+ f"@_**Cordelia, Lear's daughter|{new_user.id}** joined this organization.",
message.content,
)
@@ -323,7 +323,7 @@ class TestNotifyNewUser(ZulipTestCase):
actual_stream = Stream.objects.get(id=message.recipient.type_id)
self.assertEqual(actual_stream, realm.signup_notifications_stream)
self.assertIn(
- f"@_**new user {user_no}|{new_user.id}** just signed up for Zulip.",
+ f"@_**new user {user_no}|{new_user.id}** joined this organization.",
message.content,
)
for string_present in strings_present: