Fix JS error when receiving message in system console (#5019)

Этот коммит содержится в:
Joram Wilander
2017-01-12 10:52:58 -05:00
коммит произвёл Harrison Healey
родитель 45d18b364b
Коммит 4208e42ba9

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

@@ -111,7 +111,7 @@ class NotificationStoreClass extends EventEmitter {
// the window itself is not active
const activeChannel = ChannelStore.getCurrent();
const channelId = channel ? channel.id : null;
const notify = activeChannel.id !== channelId || !this.inFocus;
const notify = (activeChannel && activeChannel.id !== channelId) || !this.inFocus;
if (notify) {
Utils.notifyMe(title, body, channel, teamId, duration, !sound);