mirror of
https://github.com/igniterealtime/Spark.git
synced 2025-12-01 12:27:58 +00:00
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:
committed by
holger.bergunde
parent
5bc85051a3
commit
578af51a51
@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user