Fix GMs showing up on refresh after being hidden (#5702)

Этот коммит содержится в:
Joram Wilander
2017-03-09 14:41:03 -05:00
коммит произвёл George Goldberg
родитель 6ff46f3050
Коммит 9c13863f48
3 изменённых файлов: 6 добавлений и 2 удалений

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

@@ -82,6 +82,10 @@ class NotificationStoreClass extends EventEmitter {
title = channel.display_name;
}
if (title === '') {
title = msgProps.channel_display_name;
}
let notifyText = post.message.replace(/\n+/g, ' ');
if (notifyText.length > 50) {
notifyText = notifyText.substring(0, 49) + '...';