Commit 1613deb8 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Fixed roster item creation for remote shared contact. JM-588

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@3533 b35dd754-fafc-0310-a699-88a17e54d16e
parent f9f48f79
...@@ -499,10 +499,11 @@ public class Roster implements Cacheable { ...@@ -499,10 +499,11 @@ public class Roster implements Cacheable {
// Get all the users that should be in this roster // Get all the users that should be in this roster
Collection<JID> users = rosterManager.getSharedUsersForRoster(group, this); Collection<JID> users = rosterManager.getSharedUsersForRoster(group, this);
// Add the users of the group to the general list of users to process // Add the users of the group to the general list of users to process
JID userJID = getUserJID();
for (JID jid : users) { for (JID jid : users) {
// Add the user to the answer if the user doesn't belong to the personal roster // Add the user to the answer if the user doesn't belong to the personal roster
// (since we have already added the user to the answer) // (since we have already added the user to the answer)
if (!isRosterItem(jid) && !getUsername().equals(jid.getNode())) { if (!isRosterItem(jid) && !userJID.equals(jid)) {
List<Group> groups = sharedGroupUsers.get(jid); List<Group> groups = sharedGroupUsers.get(jid);
if (groups == null) { if (groups == null) {
groups = new ArrayList<Group>(); groups = new ArrayList<Group>();
......
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