messages: Update new user signup notification.

Fixes: #28834.
This commit is contained in:
shashank-23002 2024-02-06 08:26:58 +00:00 committed by Tim Abbott
parent 8e92b54df1
commit 3bf04ffab5
4 changed files with 6 additions and 6 deletions

View File

@ -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
)

View File

@ -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"],
)

View File

@ -962,7 +962,7 @@ class InviteUserTest(InviteUserBase):
self.assertEqual(signups_stream_msg.sender.email, "notification-bot@zulip.com")
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",
)
)

View File

@ -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: