Rocket.Chat icon indicating copy to clipboard operation
Rocket.Chat copied to clipboard

direct messages received not displayed after login

Open homologus opened this issue 11 years ago • 7 comments

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?

homologus avatar Sep 07 '15 02:09 homologus

can you give us the steps to reproduce?

engelgabriel avatar Sep 07 '15 02:09 engelgabriel

Unable to produce.. :(

  1. I created two users userA and userB.
  2. I logged userB off.
  3. I sent a new message (none had been done before) from userA (still logged in) to userB (not logged in)
  4. I logged userB back in.

Message was waiting for it.

Did I miss any steps on this?

geekgonecrazy avatar Sep 07 '15 02:09 geekgonecrazy

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.

missing2 missing1

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.

homologus avatar Sep 07 '15 03:09 homologus

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.

rodrigok avatar Sep 07 '15 13:09 rodrigok

Thanks rodrigok.

homologus avatar Sep 08 '15 23:09 homologus

@homologus - can you please see if the problem has been fixed.

Might have been fixed by - https://github.com/RocketChat/Rocket.Chat/commit/e9d43e9a0bed8d0370b1a20747ad2b7e9649506f

Sing-Li avatar Sep 11 '15 13:09 Sing-Li

Yes, it is. Thanks Sing-Li.

homologus avatar Sep 13 '15 05:09 homologus