Commit 4abea4a3 authored by Daniel Henninger's avatar Daniel Henninger Committed by dhenninger

Fix for MUC service reference in added event.

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@10108 b35dd754-fafc-0310-a699-88a17e54d16e
parent d1708df9
......@@ -34,13 +34,15 @@ import java.io.ObjectOutput;
public class ServiceAddedEvent implements ClusterTask {
private String subdomain;
private String description;
private Boolean isHidden;
public ServiceAddedEvent() {
}
public ServiceAddedEvent(String subdomain, String description) {
public ServiceAddedEvent(String subdomain, String description, Boolean isHidden) {
this.subdomain = subdomain;
this.description = description;
this.isHidden = isHidden;
}
public Object getResult() {
......@@ -52,7 +54,7 @@ public class ServiceAddedEvent implements ClusterTask {
// is provided by an internal component that registered at startup. This scenario, however,
// should really never occur.
if (!XMPPServer.getInstance().getMultiUserChatManager().isServiceRegistered(subdomain)) {
MultiUserChatService service = new MultiUserChatServiceImpl(subdomain, description);
MultiUserChatService service = new MultiUserChatServiceImpl(subdomain, description, isHidden);
XMPPServer.getInstance().getMultiUserChatManager().registerMultiUserChatService(service);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment