Skip to content

Commit 6182c98

Browse files
committed
PushRules settings: Applied review remarks (2/2)
1 parent fdf5b0a commit 6182c98

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎src/components/views/settings/Notifications.js‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -331,9 +331,9 @@ module.exports = React.createClass({
331331
}
332332
},
333333

334-
// Determine whether a rule is in the PushRuleVectorState.ON category or in PushRuleVectorState.LOUD
335-
// regardless of its enabled state.
336-
_pushRuleVectorStateKind: function(rule) {
334+
// Determine whether a content rule is in the PushRuleVectorState.ON category or in PushRuleVectorState.LOUD
335+
// regardless of its enabled state. Returns undefined if it does not match these categories.
336+
_contentRuleVectorStateKind: function(rule) {
337337
var stateKind;
338338

339339
// Count tweaks to determine if it is a ON or LOUD rule
@@ -533,7 +533,7 @@ module.exports = React.createClass({
533533
// when creating the new rule.
534534
// Thus, this new rule will join the 'vectorContentRules' set.
535535
if (self.state.vectorContentRules.rules.length) {
536-
pushRuleVectorStateKind = self._pushRuleVectorStateKind(self.state.vectorContentRules.rules[0]);
536+
pushRuleVectorStateKind = self._contentRuleVectorStateKind(self.state.vectorContentRules.rules[0]);
537537
}
538538
else {
539539
// ON is default
@@ -657,7 +657,7 @@ module.exports = React.createClass({
657657
vectorOverridingRules[r.rule_id] = r;
658658
}
659659
else if (kind === 'content') {
660-
switch (self._pushRuleVectorStateKind(r)) {
660+
switch (self._contentRuleVectorStateKind(r)) {
661661
case PushRuleVectorState.ON:
662662
if (r.enabled) {
663663
contentRules.on.push(r);

0 commit comments

Comments
 (0)