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;
}
var ignore = [
"join",
"part",
"quit",
"nick",
"mode",
var whitelistedActions = [
"message",
"notice",
"action",
];
if ($.inArray(msg.type, ignore) !== -1) {
if (whitelistedActions.indexOf(msg.type) === -1) {
return;
}