BinaryStudioAcademy / bsa-winter-2023-2024-lime

10 stars 5 forks source link

BUG: Chat with previous user is opened when user clicks on messsage button on Friends page #544

Closed Olena-Olenka closed 6 months ago

Olena-Olenka commented 6 months ago

Describe your issue

Chat with previous user is opened when user clicks on messsage button on Friends page

Steps to reproduce

As a logged in user go to Friends page Click on message button on card of user's following Go back to Friends page Click on message button on card of user's another following Pay attention if the chat between correct users was opened

What was the actual result?

Chat with previous user is opened when user clicks on messsage button on Friends page

What was the expected result?

Chat between correct users is opened when user clicks on messsage button on Friends page

Put here any screenshots or videos (optional)

https://github.com/BinaryStudioAcademy/bsa-winter-2023-2024-lime/assets/123622110/7f013cd7-a84b-4d5c-8258-cb4d0fca34ef

What OS are you seeing the problem on?

Windows

What browsers are you seeing the problem on?

Chrome

Severity

Critical (S2)

Olena-Olenka commented 6 months ago

https://github.com/BinaryStudioAcademy/bsa-winter-2023-2024-lime/assets/123622110/889de73a-48f6-4576-8b0f-a0d1acd99ffd

If User 1 clicks on message button to chat with User 2, last existing chat with participation of User 2 is opened - chat between User 2 and User 3

Olena-Olenka commented 6 months ago

Retested, verified