From f4e2e6176e4dddbd57efe6fa8248b65c0357f273 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Tue, 1 Aug 2023 21:19:19 -0400 Subject: [PATCH] fix: chat mark read regression --- public/src/modules/chat.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {