Fix: message deletion were not properly anonymized when using "Anonymize moderation actions" option.

This commit is contained in:
John Livingston 2025-05-21 18:18:44 +02:00
parent 60ea2b4ed0
commit b0c08e72e2
No known key found for this signature in database
GPG Key ID: B17B5640CE66CDBC
2 changed files with 2 additions and 1 deletions

View File

@ -25,6 +25,7 @@ Users must save the form to be sure to apply the correct value.
* Fix tasks: checkbox state does not change when clicked.
* Fix: bot timer can't be negative or null.
* Fix #626: Bot timer was buggy, using seconds as delay instead of minutes.
* Fix: message deletion were not properly anonymized when using "Anonymize moderation actions" option.
## 12.0.4

View File

@ -53,7 +53,7 @@ local function remove_moderate_actor(event)
-- urn:xmpp:message-moderate:1 do not require the "by" attribute
-- So, for now, settings the room jid, as we only implement urn:xmpp:message-moderate:0.
moderated.attr.by = room.jid;
moderated:remove_children("occupant-id", "urn:xmpp:occupant-id:0");
announcement:remove_children("occupant-id", "urn:xmpp:occupant-id:0");
end
if tombstone then