Commit fd50ec6b authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gaston

Only add the user to the new collection for changing the privileges. JM-254


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@1238 b35dd754-fafc-0310-a699-88a17e54d16e
parent ccf66078
...@@ -115,7 +115,6 @@ ...@@ -115,7 +115,6 @@
boolean isAlreadyAdmin = group.getAdmins().contains(newAdmin); boolean isAlreadyAdmin = group.getAdmins().contains(newAdmin);
if (!isAlreadyAdmin) { if (!isAlreadyAdmin) {
// Add new admin // Add new admin
group.getMembers().remove(newAdmin);
group.getAdmins().add(newAdmin); group.getAdmins().add(newAdmin);
} }
} }
...@@ -130,7 +129,6 @@ ...@@ -130,7 +129,6 @@
Iterator i = removeList.iterator(); Iterator i = removeList.iterator();
while (i.hasNext()) { while (i.hasNext()) {
String m = (String) i.next(); String m = (String) i.next();
group.getAdmins().remove(m);
group.getMembers().add(m); group.getMembers().add(m);
} }
// Get admin list and compare it the admin posted list. // Get admin list and compare it the admin posted list.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment