Allow Users to be notified using @all, @channel, and their first name when other notifications are disabled
Этот коммит содержится в:
@@ -177,17 +177,15 @@ var UserStore = assign({}, EventEmitter.prototype, {
|
||||
},
|
||||
getCurrentMentionKeys: function() {
|
||||
var user = this.getCurrentUser();
|
||||
if (user && user.notify_props && user.notify_props.mention_keys) {
|
||||
var keys = user.notify_props.mention_keys.split(',');
|
||||
|
||||
if (user.first_name && user.notify_props.first_name === "true") keys.push(user.first_name);
|
||||
if (user.notify_props.all === "true") keys.push('@all');
|
||||
if (user.notify_props.channel === "true") keys.push('@channel');
|
||||
var keys = [];
|
||||
|
||||
return keys;
|
||||
} else {
|
||||
return [];
|
||||
}
|
||||
if (user.notify_props && user.notify_props.mention_keys) keys = keys.concat(user.notify_props.mention_keys.split(','));
|
||||
if (user.first_name && user.notify_props.first_name === "true") keys.push(user.first_name);
|
||||
if (user.notify_props.all === "true") keys.push('@all');
|
||||
if (user.notify_props.channel === "true") keys.push('@channel');
|
||||
|
||||
return keys;
|
||||
},
|
||||
getLastVersion: function() {
|
||||
return BrowserStore.getItem("last_version", '');
|
||||
|
||||
Ссылка в новой задаче
Block a user