Merge pull request #273 from thelounge/xpaw/fix-badge-counter
Only increase unread counter for whitelisted actions
This commit is contained in:
commit
a276e5714a
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user