PLT-3328 Added Title for Direct Message Desktop Notifications (#3438)

* Added title for DM desktop notifications
Этот коммит содержится в:
David Lu
2016-06-29 08:46:10 -04:00
коммит произвёл Joram Wilander
родитель fccacbbf96
Коммит 4c9b48da8f
2 изменённых файлов: 6 добавлений и 3 удалений

Просмотреть файл

@@ -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, ' ');