From 03f45fcb9306a4d4fa201fa0b02e87c2aa63e89c Mon Sep 17 00:00:00 2001 From: slawk0 Date: Fri, 20 Sep 2024 22:17:40 +0200 Subject: [PATCH] fixed displaying unread dot on current recipient --- frontend/js/chat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/js/chat.js b/frontend/js/chat.js index 5f7b253..e5b6702 100644 --- a/frontend/js/chat.js +++ b/frontend/js/chat.js @@ -85,7 +85,7 @@ async function initializeSocket() { } // Add and display contact - if (recipient !== currentRecipient && username !== currentUsername) { + if (username !== currentRecipient && username !== currentUsername) { // Check if the contact has already been added socket.emit('status', username); console.log('new message from ', username, "recipient: ", recipient, 'currentRecipient: ', currentRecipient );