Hi
I create a chat room with following code:
submitForm.setAnswer(“muc#roomconfig_persistentroom”, true);
but on server side,the value of muc#roomconfig_persistentroom was get as “true”, not “1”, so this chat room can’t be persisted to db.
field = completedForm.getField(“muc#roomconfig_persistentroom”);
if (field != null) {
final String value = field.getFirstValue();
booleanValue = ((value != null ? value : “1”));
boolean isPersistent = (“1”.equals(booleanValue));
// Delete the room from the DB if it’s no longer persistent
if (room.isPersistent() && !isPersistent) {
MUCPersistenceManager.deleteFromDB(room);
}
room.setPersistent(isPersistent);
}
how can i resolve this issue?