Browse Source

fix wrong condition statements

master
Simon Grim 9 years ago
parent
commit
c89b37acd5
  1. 2
      js/twister_directmsg.js
  2. 2
      js/twister_newmsgs.js

2
js/twister_directmsg.js

@ -156,7 +156,7 @@ function directMessagesPopup() { @@ -156,7 +156,7 @@ function directMessagesPopup() {
.attr('title', polyglot.t('Mark all as read'))
.on('click', function() {
for (var user in _newDMsPerUser) {
if (!user[0] === '*')
if (user[0] !== '*')
_newDMsPerUser[user] = 0;
}
saveDMsToStorage();

2
js/twister_newmsgs.js

@ -225,7 +225,7 @@ function getNewDMsCount() { @@ -225,7 +225,7 @@ function getNewDMsCount() {
var newDMs = 0;
for (var user in _newDMsPerUser) {
if (!user[0] === '*' && _newDMsPerUser[user])
if (user[0] !== '*' && _newDMsPerUser[user])
newDMs += _newDMsPerUser[user];
}

Loading…
Cancel
Save