I am making a chatting app using django, a user when he click to make a conversation with someone, if he clicked to a another person to make a conversation, he can't come back to the previous one. I think the problem is in the js.
here is the application.js
$('.user').click(function () {
userList.children('.active').removeClass('active');
let selected = event.target;
$(selected).addClass('active');
setCurrentRecipient(selected.text);
});
please help this made me crazy!