Open Antreesy opened 10 months ago
Similar issue with message expiration at https://github.com/nextcloud/spreed/issues/11298
Will have a look, but not sure this is easily fixable and worth it. If we have to cascade the deletion, deleting a message could result in many hidden system messages, even worse on expiration where we don't even track which messages got deleted
If a single "message deleted" system message is good enough, we could add a single query like:
DELETE FROM oc_comments WHERE (verb = 'reaction' OR verb = 'reaction_deleted') AND parent_id = X;
However the system message of a reaction_revoked
is much harder to delete, as it would be verb = 'system' AND message = '{"message":"reaction_revoked","parameters":{"message":REACTION_MESSAGE_ID}}'
so requiring a list of IDs before hitting the query and potentially having a huge result, or we simply delete all system messages that are "child" to the deleted message. That would delete edit traces etc also for the future, so not sure we'd like that.
How to use GitHub
Steps to reproduce
Expected behaviour
Server response should be:
Actual behaviour