From 5a58d1a3697c632b4cbd6d846f66dd5355aac677 Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Sun, 24 Apr 2016 11:21:26 +0300 Subject: [PATCH] Only increase unread counter for whitelisted actions --- client/js/lounge.js | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/client/js/lounge.js b/client/js/lounge.js index 49bb54ae..c303e53f 100644 --- a/client/js/lounge.js +++ b/client/js/lounge.js @@ -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; }