Commit 7fdde200 authored by David Smith's avatar David Smith Committed by david

Add a 'jid' field to the MUC search results

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@9819 b35dd754-fafc-0310-a699-88a17e54d16e
parent c9792a95
......@@ -340,7 +340,10 @@ public class IQMUCSearchHandler
innerfield.setType(FormField.TYPE_BOOLEAN);
innerfield.addValue(Boolean.toString(room.isMembersOnly()));
fields.add(innerfield);
innerfield = new XFormFieldImpl("jid");
innerfield.setType(FormField.TYPE_TEXT_SINGLE);
innerfield.addValue(room.getRole().getRoleAddress().toString());
fields.add(innerfield);
resultform.addItemFields(fields);
atLeastoneResult = true;
}
......@@ -367,6 +370,10 @@ public class IQMUCSearchHandler
rffPasswordProtected.setLabel("Is a password protected room.");
resultform.addReportedField(rffPasswordProtected);
final FormField rffJID = new XFormFieldImpl("jid");
rffJID.setLabel("JID");
resultform.addReportedField(rffJID);
FormField innerfield = new XFormFieldImpl("is_member_only");
innerfield.setType(FormField.TYPE_TEXT_SINGLE);
innerfield.setLabel("Is a member only room.");
......
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