From 4c9b48da8f54bc9af83c7e987149be316f5c61f7 Mon Sep 17 00:00:00 2001 From: David Lu Date: Wed, 29 Jun 2016 08:46:10 -0400 Subject: PLT-3328 Added Title for Direct Message Desktop Notifications (#3438) * Added title for DM desktop notifications --- webapp/stores/notification_store.jsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'webapp/stores') diff --git a/webapp/stores/notification_store.jsx b/webapp/stores/notification_store.jsx index 78f8e56c8..e05d20329 100644 --- a/webapp/stores/notification_store.jsx +++ b/webapp/stores/notification_store.jsx @@ -63,10 +63,12 @@ class NotificationStoreClass extends EventEmitter { } let title = Utils.localizeMessage('channel_loader.posted', 'Posted'); - if (channel) { - title = channel.display_name; - } else if (msgProps.channel_display_name) { + if (!channel) { title = msgProps.channel_display_name; + } else if (channel.type === Constants.DM_CHANNEL) { + title = Utils.localizeMessage('notification.dm', 'Direct Message'); + } else { + title = channel.display_name; } let notifyText = post.message.replace(/\n+/g, ' '); -- cgit v1.2.3-1-g7c22