Searching for recent mentions no longer includes all or channel if those options were toggled in the users mention settings

Этот коммит содержится в:
Reed Garmsen
2015-07-23 16:11:14 -07:00
родитель 66136a557c
Коммит 568496e3a2

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

@@ -125,7 +125,14 @@ module.exports = React.createClass({
var terms = "";
if (user.notify_props && user.notify_props.mention_keys) {
terms = UserStore.getCurrentMentionKeys().join(' ');
var termKeys = UserStore.getCurrentMentionKeys();
if (user.notify_props.all === "true" && termKeys.indexOf("@all") !== -1) {
termKeys.splice(termKeys.indexOf("@all"), 1);
}
if (user.notify_props.channel === "true" && termKeys.indexOf("@channel") !== -1) {
termKeys.splice(termKeys.indexOf("@channel"), 1);
}
terms = termKeys.join(' ');
}
AppDispatcher.handleServerAction({