Multiple cross-team functionality fixes (#2902)

This commit is contained in:
Joram Wilander
2016-05-06 08:06:34 -04:00
committed by Christopher Speller
parent 4b2843ee9d
commit d75cb02948
7 changed files with 27 additions and 10 deletions

View File

@@ -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;
}

View File

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