diff --git a/public/src/modules/chat.js b/public/src/modules/chat.js index d1b5a8ecd6..33b3e9a16a 100644 --- a/public/src/modules/chat.js +++ b/public/src/modules/chat.js @@ -154,11 +154,11 @@ define('chat', [ alerts.error(err); // Revert on failure - module.markChatElUnread($(chatEl), !(state === 1)); + module.markChatElUnread($(chatEl), !state); }); // Immediate feedback - module.markChatElUnread($(chatEl), state === 1); + module.markChatElUnread($(chatEl), state); }; module.isFromBlockedUser = function (fromUid) {