fixed displaying unread dot on current recipient

This commit is contained in:
slawk0
2024-09-20 22:17:40 +02:00
parent 88904fcb53
commit 03f45fcb93

View File

@@ -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 );