Chat channels broke after user deleted

Hello,

I noticed on our forum the chat channels are empty after we deleted a user from Discourse, who wrote in the specific channel. I updated before I write this topic so Discourse and Discourse Chat is also on latest.

Repro:

  1. Write a message in a channel with UserA
  2. Delete UserA from Discourse
  3. The channel is seems to empty (the other members messages also disappears) with the following console error.

    Uncaught TypeError: Cannot read properties of null (reading 'username')

Thanks :slightly_smiling_face:

3 Likes

Just confirming that I can reproduce this issue. We’ll take a look!

6 Likes

We have this at the top of our list now and should have a fix sometime next week.

4 Likes

Here’s the fix we just merged for this issue:

Let us know how things look after you get a chance to update your plugin.

5 Likes

Thank you so much! Works perfect! :slightly_smiling_face:

4 Likes

This topic was automatically closed after 10 hours. New replies are no longer allowed.