summaryrefslogtreecommitdiffstats
path: root/webapp/stores
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2017-03-09 14:41:03 -0500
committerGeorge Goldberg <george@gberg.me>2017-03-09 19:41:03 +0000
commit9c13863f484e9741adf4179cb6b95ee4af8ec343 (patch)
treed21b1021642124dee6f03188c83c75563ddfda8a /webapp/stores
parent6ff46f30509819d518799561f66358dcd1ec4230 (diff)
downloadchat-9c13863f484e9741adf4179cb6b95ee4af8ec343.tar.gz
chat-9c13863f484e9741adf4179cb6b95ee4af8ec343.tar.bz2
chat-9c13863f484e9741adf4179cb6b95ee4af8ec343.zip
Fix GMs showing up on refresh after being hidden (#5702)
Diffstat (limited to 'webapp/stores')
-rw-r--r--webapp/stores/notification_store.jsx4
1 files changed, 4 insertions, 0 deletions
diff --git a/webapp/stores/notification_store.jsx b/webapp/stores/notification_store.jsx
index f32e71047..f32107ef7 100644
--- a/webapp/stores/notification_store.jsx
+++ b/webapp/stores/notification_store.jsx
@@ -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) + '...';