diff --git a/e2e-tests/cypress/tests/integration/channels/notifications/desktop_notifications_1_spec.js b/e2e-tests/cypress/tests/integration/channels/notifications/desktop_notifications_1_spec.js index 8d6e0ea3b6..a1705c3bc9 100644 --- a/e2e-tests/cypress/tests/integration/channels/notifications/desktop_notifications_1_spec.js +++ b/e2e-tests/cypress/tests/integration/channels/notifications/desktop_notifications_1_spec.js @@ -144,7 +144,7 @@ describe('Desktop notifications', () => { spyNotificationAs('withNotification', 'granted'); const actualMsg = '---'; - const expected = '@' + otherUser.username + ' did something new'; + const expected = '@' + otherUser.username + ' posted a message'; // # Ensure notifications are set up to fire a desktop notification for all activity. changeDesktopNotificationAs('all'); diff --git a/webapp/channels/src/actions/notification_actions.tsx b/webapp/channels/src/actions/notification_actions.tsx index 4208c074a5..59b9daacce 100644 --- a/webapp/channels/src/actions/notification_actions.tsx +++ b/webapp/channels/src/actions/notification_actions.tsx @@ -174,7 +174,7 @@ export function sendDesktopNotification(post: Post, msgProps: NewPostMessageProp } const getNotificationTitle = (channel: Pick, msgProps: NewPostMessageProps, isCrtReply: boolean) => { - let title = Utils.localizeMessage({id: 'channel_loader.posted', defaultMessage: 'Posted'}); + let title = Utils.localizeMessage({id: 'channel_loader.title', defaultMessage: 'Posted'}); if (channel.type === Constants.DM_CHANNEL) { title = Utils.localizeMessage({id: 'notification.dm', defaultMessage: 'Direct Message'}); } else { @@ -241,7 +241,7 @@ const getNotificationBody = (state: GlobalState, post: Post, msgProps: NewPostMe } else if (image) { body += Utils.localizeMessage({id: 'channel_loader.postedImage', defaultMessage: ' posted an image'}); } else { - body += Utils.localizeMessage({id: 'channel_loader.something', defaultMessage: ' did something new'}); + body += Utils.localizeMessage({id: 'channel_loader.posted', defaultMessage: ' posted a message'}); } } else { body += `: ${strippedMarkdownNotifyText}`; diff --git a/webapp/channels/src/i18n/en.json b/webapp/channels/src/i18n/en.json index 82d84441ca..5c2f956d39 100644 --- a/webapp/channels/src/i18n/en.json +++ b/webapp/channels/src/i18n/en.json @@ -3484,11 +3484,11 @@ "channel_invite.no_options_message": "No matches found - Invite them to the team", "channel_invite.policy_enforced.description": "Only people who match the specified access rules can be selected and added to this channel.", "channel_invite.policy_enforced.title": "Channel access is restricted by user attributes", - "channel_loader.posted": "Posted", + "channel_loader.posted": " posted a message", "channel_loader.postedImage": " posted an image", "channel_loader.socketError": "Please check connection, Mattermost unreachable. If issue persists, ask administrator to [check WebSocket port](!https://docs.mattermost.com/install/troubleshooting.html#please-check-connection-mattermost-unreachable-if-issue-persists-ask-administrator-to-check-websocket-port).", "channel_loader.someone": "Someone", - "channel_loader.something": " did something new", + "channel_loader.title": "Posted", "channel_loader.unknown_error": "We received an unexpected status code from the server.", "channel_loader.uploadedFile": " uploaded a file", "channel_loader.uploadedImage": " uploaded an image",