fixed displaying unread dot on current recipient
This commit is contained in:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user