diff options
Diffstat (limited to 'webapp/actions/notification_actions.jsx')
-rw-r--r-- | webapp/actions/notification_actions.jsx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/webapp/actions/notification_actions.jsx b/webapp/actions/notification_actions.jsx index ecf301ed8..82a68c452 100644 --- a/webapp/actions/notification_actions.jsx +++ b/webapp/actions/notification_actions.jsx @@ -66,7 +66,11 @@ export function sendDesktopNotification(post, msgProps) { } if (title === '') { - title = msgProps.channel_display_name; + if (msgProps.channel_type === Constants.DM_CHANNEL) { + title = Utils.localizeMessage('notification.dm', 'Direct Message'); + } else { + title = msgProps.channel_display_name; + } } let notifyText = post.message.replace(/\n+/g, ' '); |