I’'m trying to create a persistent MUC but when I add the FormField code between the comments bellow I seem to get an xmpp 400 error. anyone know how i can solve this ? Am i adding the formfield improperly ?
thanks,
Nick.
con = new XMPPConnection(host, port);
con.login(username, password);
MultiUserChat muc = new MultiUserChat(con,name);
muc.create(name);
// - make room persistent - causes xmpperror 400
////////////////////////////////////////////
Form f = new Form(Form.TYPE_SUBMIT);
FormField ff = new FormField(“muc#roomconfig_persistentroom”);
ff.setType(FormField.TYPE_BOOLEAN);
ff.addValue(“0”);
ff.setRequired(true);
ff.setLabel(“Make Room Persistent?”);
System.out.println(ff.toXML()); // - output values seems good.
f.addField(ff);
/////////////////////////////////////
muc.sendConfigurationForm(f);