Merge pull request #273 from thelounge/xpaw/fix-badge-counter

Only increase unread counter for whitelisted actions
This commit is contained in:
Jérémie Astori 2016-04-25 00:41:40 -04:00
commit a276e5714a

View File

@ -807,14 +807,12 @@ $(function() {
return; return;
} }
var ignore = [ var whitelistedActions = [
"join", "message",
"part", "notice",
"quit", "action",
"nick",
"mode",
]; ];
if ($.inArray(msg.type, ignore) !== -1) { if (whitelistedActions.indexOf(msg.type) === -1) {
return; return;
} }