From 5f3573ab6b5e8e57cc9b8e04502b324abde39a44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CHuy?= Date: Tue, 3 Dec 2024 11:57:19 +0000 Subject: [PATCH] OF-2918: Add option to clear history for a given MUC Changes from PR review 1. Add the chatManagement.bulkMsgRetractionEnabled configuration to allow administrators to skip sending bulk retraction messages. 2. Make the MucRoom.clearChatHistory() method asynchronous, as it can be a long-running process. 3. Iterate over the history from the end, sending a revocation for the most recently received message first. This message is much more likely to be currently displayed in a connected client than the oldest message in a chatroom. 4. Add a translatable muc.room.clear_chat.retraction_fallback_msg string. --- distribution/src/conf/openfire.xml | 4 + .../main/resources/openfire_i18n.properties | 1 + .../jivesoftware/openfire/muc/MUCRoom.java | 82 ++++++++++--------- 3 files changed, 49 insertions(+), 38 deletions(-) diff --git a/distribution/src/conf/openfire.xml b/distribution/src/conf/openfire.xml index 76f56d1543..2f72a23f0a 100644 --- a/distribution/src/conf/openfire.xml +++ b/distribution/src/conf/openfire.xml @@ -24,6 +24,10 @@ en + + true + +