From 86fbd496af8ff646bcff8484ad1733101333e8c6 Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Fri, 7 Apr 2017 14:21:31 -0400 Subject: Check if we need to add DM/GM to sidebar regardless of post sender (#6009) --- webapp/actions/notification_actions.jsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'webapp/actions/notification_actions.jsx') 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, ' '); -- cgit v1.2.3-1-g7c22