I have ‘list of users’ page and when a user clicks on another particular user, a ‘view profile’ page opens which contains a ‘chat’ icon.
It appears that if I click the ‘chat’ icon twice, 2 separate chat boxes open up in main ‘list of chats’ page. I clicked the chat icon twice by accident and 2 separate chat boxes opened up. How do I correct this? Any suggestions?
I followed the tutorial. Am I getting these 2 boxes because there are 2 ‘update’ actions on click (one for current user and one for logged in user)?