Commit 1d8521c9 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Ensure that group members are present only once. JM-474

git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@3127 b35dd754-fafc-0310-a699-88a17e54d16e
parent fbb3eb6f
...@@ -49,8 +49,8 @@ public class Group implements Cacheable { ...@@ -49,8 +49,8 @@ public class Group implements Cacheable {
private String name; private String name;
private String description; private String description;
private Map<String, String> properties; private Map<String, String> properties;
private Collection<JID> members; private Set<JID> members;
private Collection<JID> administrators; private Set<JID> administrators;
/** /**
* Constructs a new group. Note: this constructor is intended for implementors of the * Constructs a new group. Note: this constructor is intended for implementors of the
...@@ -70,8 +70,8 @@ public class Group implements Cacheable { ...@@ -70,8 +70,8 @@ public class Group implements Cacheable {
this.groupManager = GroupManager.getInstance(); this.groupManager = GroupManager.getInstance();
this.name = name; this.name = name;
this.description = description; this.description = description;
this.members = members; this.members = new HashSet<JID>(members);
this.administrators = administrators; this.administrators = new HashSet<JID>(administrators);
} }
/** /**
......
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