ManPhamQuang / COSC2769-rmit

Further web programming - COSC2769
cosc-2769-rmit.vercel.app
MIT License
0 stars 0 forks source link

[Bug] Fetching messages when users join a room return inconsistent data #72

Closed dangvuthang closed 3 years ago

dangvuthang commented 3 years ago

Description

If users join room 1, type messages in it and then join another room 2. The messages fetching in room 2 will also includes that of room 1. See images below

Screenshot (361)

Screenshot (362)

As shown in the message above, room f15 is a new room, but the current logged-in User1 receives the old messages from f12. It seems that the number of rooms the users join result in the number of messages that they will receive when joining a room

Screenshot (365)

Users join new room f14. Even though this is a new room, the result will still be randomly if the last fetching is the old messages from room f12 Screenshot (366)

or the new messages

Screenshot (365)