From c9ddb6f1720450ec9c84eef0c6dac8cd7908a4bd Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Fri, 5 Mar 2021 17:55:26 +0100 Subject: [PATCH] Update --- assets/js/components/sidebar/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/components/sidebar/main.js b/assets/js/components/sidebar/main.js index ab658c92..f8d88104 100644 --- a/assets/js/components/sidebar/main.js +++ b/assets/js/components/sidebar/main.js @@ -545,7 +545,7 @@ const SidebarMain = { li.setAttribute("data-membership-conv-id", conv.id) // Check for unread messages - if(!conv.last_activity > conv.members.find(m => m.user_id == userID()).last_access) { + if(conv.last_activity > conv.members.find(m => m.user_id == userID()).last_access) { li.classList.add("has-unread-msg"); }