Deleting a group makes all it's messages "lost"

When I delete a group it moves it’s messages to be private messages with only the one that sent it, effectively making them “lost”. (In this case I wanted to see what happened), maybe discourse should warn about this, or not allow without moving them out first?

5 Likes

Not sure what a good way to handle this is @sam?

1 Like

Sure, it would be a good idea to warn!

5 Likes

Sorry for the real real real slow reply here.

@vinothkannans can you review how this is working now? If it is still an edge case just pop up a bootbox on group deletion warning users that bad stuff will happen.

@carlokok if you are hunting for the messages one thing you can do is use a data explorer query.

5 Likes

Oh my…

OK I just tested this, we indeed still orphan the messages, we should change the text here:

Deleting this group will cause 78 messages to be orphaned, group members will no longer have access to them.

Are you sure?

6 Likes

This is now fixed in the PR below

https://github.com/discourse/discourse/pull/11727

3 Likes