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.

push-notifications: Update strings for private messages.

Lauryn Menard182e6c073072
diff --git a/zerver/lib/push_notifications.py b/zerver/lib/push_notifications.py
index e3f13d9e5ad..4b8dbb21fac 100644
--- a/zerver/lib/push_notifications.py
+++ b/zerver/lib/push_notifications.py
@@ -661,12 +661,12 @@ def get_gcm_alert(
message.recipient.type == Recipient.HUDDLE
and trigger == NotificationTriggers.PRIVATE_MESSAGE
):
- return f"New private group message from {sender_str}"
+ return f"New direct group message from {sender_str}"
elif (
message.recipient.type == Recipient.PERSONAL
and trigger == NotificationTriggers.PRIVATE_MESSAGE
):
- return f"New private message from {sender_str}"
+ return f"New direct message from {sender_str}"
elif message.is_stream_message() and trigger == NotificationTriggers.MENTION:
if mentioned_user_group_name is None:
return f"{sender_str} mentioned you in #{display_recipient}"
diff --git a/zerver/tests/test_push_notifications.py b/zerver/tests/test_push_notifications.py
index e3c0e9a6e4b..bf1e8cb1ec1 100644
--- a/zerver/tests/test_push_notifications.py
+++ b/zerver/tests/test_push_notifications.py
@@ -2070,7 +2070,7 @@ class TestGetGCMPayload(PushNotificationTest):
{
"user_id": hamlet.id,
"event": "message",
- "alert": "New private message from King Hamlet",
+ "alert": "New direct message from King Hamlet",
"zulip_message_id": message.id,
"time": datetime_to_timestamp(message.date_sent),
"content": message.content,