diff options
author | Joram Wilander <jwawilander@gmail.com> | 2017-04-07 14:21:31 -0400 |
---|---|---|
committer | George Goldberg <george@gberg.me> | 2017-04-07 19:21:31 +0100 |
commit | 86fbd496af8ff646bcff8484ad1733101333e8c6 (patch) | |
tree | 894e300dd9555fd3a2313f1c4f2ec628cd3edc07 /webapp/actions/notification_actions.jsx | |
parent | 9318ffcdf3caf77d66e0b9fc7967d9de9ea99b4b (diff) | |
download | chat-86fbd496af8ff646bcff8484ad1733101333e8c6.tar.gz chat-86fbd496af8ff646bcff8484ad1733101333e8c6.tar.bz2 chat-86fbd496af8ff646bcff8484ad1733101333e8c6.zip |
Check if we need to add DM/GM to sidebar regardless of post sender (#6009)
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 e56d486ec..50b300336 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, ' '); |