Only increase unread counter for whitelisted actions
This commit is contained in:
parent
8c41975dd7
commit
5a58d1a369
@ -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