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
1 changed files with 5 additions and 7 deletions

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