Sender closing and re-opening DM chat after sending a message removes unread indicator for receiving user

AI-generated summary

A bug was reported where closing and reopening a direct message (DM) chat after sending a message causes the unread indicator to disappear for the receiving user, making it impossible to notice new messages unless the chat is manually opened. Moin detailed the steps to reproduce: send a DM, close the chat using the x button, reopen it, then log in as the recipient — no green unread indicators appear in the header or sidebar. The issue only occurs if the recipient logs in after the sender reopens the chat; logging in before step 4 preserves the notification. j.jaffeux assigned the issue to davidb, who confirmed it’s now fixed via commit 24cc2b9dc. The fix ensures unread indicators persist correctly regardless of chat reopening behavior. This bug may explain sporadic missing notifications users have reported. A video demonstration was attached to illustrate the issue. Tags: chat, notifications. Category: Bug.

I know there are already some topics about missing chat notifications, but I don’t think the repro steps I found match the problem in any of the existing ones. I discovered this more by accident. I am not sure closing and reopening a DM chat is something users perform frequently, but I still think it shouldn’t happen, and maybe it’s a hint on why I am sometimes not notified about chat messages.

The missing notification I mean is any green indicator on the icon in the header or sidebar.

Steps to reproduce:

  1. Log in as user1, that is allowed to send DMs
  2. Send a chat message to user2.
  3. Close the DM chat - not the chat itself, but use the x button in the sidebar or chat drawer.
  4. Use the plus to open the chat with user2 again.
  5. Log in as user2.

Expected result: There is a green indicator at the chat icon in the header, and the DM is in the list of DMs with a green unread indicator next to it.

Actual result: There is no way to find out user1 messaged you. You can only find out when you want to send a message to them and find the message after you open the conversation. Then you can see that it’s below the read line showing your reading progress.

Note: When you log in as user2 before performing step 4, you can still see the notification as expected. In case you work with 2 browser windows, you need to reload the window where user 2 is logged in after user1 performed step 4

3 Likes

Thanks @Moin. @davidb can you try to investigate this please?

1 Like

This should now be fixed with this commit:

This topic was automatically closed after 3 days. New replies are no longer allowed.