Multiple cross-team functionality fixes (#2902)

Этот коммит содержится в:
Joram Wilander
2016-05-06 08:06:34 -04:00
коммит произвёл Christopher Speller
родитель 4b2843ee9d
Коммит d75cb02948
7 изменённых файлов: 27 добавлений и 10 удалений

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

@@ -43,7 +43,7 @@ class NotificationStoreClass extends EventEmitter {
if (notifyLevel === 'none') {
return;
} else if (notifyLevel === 'mention' && mentions.indexOf(user.id) === -1 && channel.type !== Constants.DM_CHANNEL) {
} else if (notifyLevel === 'mention' && mentions.indexOf(user.id) === -1 && msgProps.channel_type !== Constants.DM_CHANNEL) {
return;
}

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

@@ -111,7 +111,7 @@ class UserStoreClass extends EventEmitter {
}
hasProfile(userId) {
return this.getProfiles()[userId] != null;
return this.getProfile(userId) != null;
}
getProfile(userId) {