Deleting a chat messages shows old messages as unread

AI-generated summary

A user reports a bug in the chat feature where deleting messages or switching channels causes an incorrect unread message count to appear upon login, with the issue seemingly starting after upgrading to 3.1.0.beta4. Jagster describes the problem, noting the unread count is unusually high and unpredictable. Canapin asks if the issue persists after an upgrade. j.jaffeux confirms it’s a recent regression and that a fix is expected soon. j.jaffeux later states the issue has been identified and fixed, with a merge commit ae3231e1406d4ccf1d048ef8a8d8f744f840896b resolving it. Jagster confirms the fix resolves the issue.

When I delete a chat message, or move to another channel, then next time I login new message indicator of the chat shows amount X unread messages. It happends to every users.

Amount X because first I thought it shows everything as new, but that is not a situation. Then I reckoned indicator shows amount of messages minus this day, but that wasn’t true either. So I can’t guess where that amount of unread comes from, but it is ridiculous large.

I can’t say excacly when it started but I would claim when I upgraded to 3.1.0.beta4 (06893d8505)

And no, I haven’t tried upgrading. Yet.

1 Like

The chat is still heavily worked on, can you tell us if you still encounter the issue after you’ve upgraded, before we try to repro?

2 Likes

No need to upgrade, this is a recent regression I think, will most likely be fixed by the end of the week.

3 Likes

We have identified the issue and root cause, we will try to issue a fix tomorrow :+1:

5 Likes

We just merged this fix which we expect to fix your issue:

https://github.com/discourse/discourse/commit/ae3231e1406d4ccf1d048ef8a8d8f744f840896b

5 Likes

A quick test showed no issues. Thanks!

4 Likes

This topic was automatically closed 4 days after the last reply. New replies are no longer allowed.