Only increase unread counter for whitelisted actions

This commit is contained in:
Pavel Djundik 2016-04-24 11:21:26 +03:00
parent 8c41975dd7
commit 5a58d1a369

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;
}