SPARK-1242 Groups should not disappear when rename them with Smack 3.2.0 Beta 2. Goes hand by hand with SMACK-312

git-svn-id: http://svn.igniterealtime.org/svn/repos/spark/trunk@12090 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Holger Bergunde
2011-03-10 11:57:35 +00:00
committed by holger.bergunde
parent 5bc85051a3
commit 578af51a51

View File

@ -1428,7 +1428,8 @@ public final class ContactList extends JPanel implements ActionListener, Contact
Roster roster = SparkManager.getConnection().getRoster();
RosterGroup rosterGroup = roster.getGroup(groupName);
if (rosterGroup != null) {
//Do not remove ContactGroup if the name entered was the same
if (rosterGroup != null && !groupName.equals(newName)) {
removeContactGroup(group);
rosterGroup.setName(newName);
}