SPARK-349: MUC / Create Room: fix strange behaviour

git-svn-id: http://svn.igniterealtime.org/svn/repos/spark/trunk@12045 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Konstantin Zolotarev
2011-03-02 05:34:12 +00:00
committed by konstantin.zolotarev
parent 744bcde294
commit 74e30d37d4
2 changed files with 1185 additions and 1172 deletions

View File

@ -687,6 +687,7 @@ public class ConferenceRoomBrowser extends JPanel implements ActionListener, Com
form.setAnswer("muc#roomconfig_roomsecret", password);
}
form.setAnswer("muc#roomconfig_roomname", mucRoomDialog.getRoomName());
form.setAnswer("muc#roomconfig_roomdesc", mucRoomDialog.getRoomTopic());
if (mucRoomDialog.isPermanent()) {
form.setAnswer("muc#roomconfig_persistentroom", true);

View File

@ -244,8 +244,20 @@ public class RoomCreationDialog extends JPanel {
return new String(confirmPasswordField.getPassword());
}
/**
* Returns the Room name of the RoomCreationDialog
*
* @return The Room name
*/
public String getRoomName() {
return nameField.getText();
}
/**
* Returns the Topic of the RoomCreationDialog
* @return The Rooms Topic
*/
public String getRoomTopic() {
return topicField.getText();
}
}