direct messages received not displayed after login
Hello,
I recently installed rocket.chat in my server and was trying it on my own with two accounts. I noticed that often when one person (A) is logged out and another person (B) sends a direct message, that message does not show up on A's screen after A logs in. The message is not lost, because I can clearly see it in mongodb dump, it somehow never shows up on A's account.
I can reproduce this behavior very consistently. Did anyone else notice something similar?
can you give us the steps to reproduce?
Unable to produce.. :(
- I created two users userA and userB.
- I logged userB off.
- I sent a new message (none had been done before) from userA (still logged in) to userB (not logged in)
- I logged userB back in.
Message was waiting for it.
Did I miss any steps on this?
Let me investigate more, because it seems like the behavior is more complicated than what I described.
Here are two screenshots and you can see the difference. The message marked in red does not show up in the other screen.
However, when I press browser reload on the second window, the missing messages comes back. So, it could be that the browser is not rendering the messages.
Hopefully, this is an isolated issue related to my browser setup and not a general problem of the program.
Seems that we don't reload the messages from opened rooms after login, you have the messages from before logout and after login. Probably the solution will be close all rooms in RoomManager on logout.
Thanks rodrigok.
@homologus - can you please see if the problem has been fixed.
Might have been fixed by - https://github.com/RocketChat/Rocket.Chat/commit/e9d43e9a0bed8d0370b1a20747ad2b7e9649506f
Yes, it is. Thanks Sing-Li.