Skip to content

Commit

Permalink
OF-2918: Add option to clear history for a given MUC
Browse files Browse the repository at this point in the history
Add a method to dispatcher roomClearChatHistory events. This change supports fixes for issues igniterealtime/openfire-monitoring-plugin#369 and igniterealtime/openfire-monitoring-plugin#370 in the Monitoring plugin.
  • Loading branch information
“Huy committed Dec 6, 2024
1 parent 7be30bd commit 94f083d
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

package org.jivesoftware.openfire.muc;

import org.eclipse.jetty.ee8.servlet.listener.IntrospectorCleaner;
import org.xmpp.packet.JID;
import org.xmpp.packet.Message;

Expand All @@ -41,6 +42,13 @@ public interface MUCEventListener {
*/
void roomDestroyed(JID roomJID);

/**
* Event triggered when a clear chat history command was issued.
*
* @param roomJID JID of the room to clear chat history.
*/
void roomClearChatHistory(JID roomJID);

/**
* Event triggered when a new occupant joins a room.
*
Expand Down

0 comments on commit 94f083d

Please sign in to comment.