if (group.isUser(item.getJid())) { item.addSharedGroup(group); item.setSubStatus(RosterItem.SUB_BOTH); item.addSharedGroup(group); itemGroups.add(group); } else {
item.addSharedGroup(group); } else { item.addInvisibleSharedGroup(group);
if (rosterManager.isGroupVisible(group, getUserJID())) { item.addSharedGroup(group); if (rosterManager.isGroupVisible(group, getUserJID())) { item.addSharedGroup(group); item.setSubStatus(RosterItem.SUB_TO);
if (group.isUser(item.getJid())) { item.addSharedGroup(group); item.setSubStatus(RosterItem.SUB_BOTH); item.addSharedGroup(group); itemGroups.add(group); } else {
item.addSharedGroup(group); } else { item.addInvisibleSharedGroup(group);
if (rosterManager.isGroupVisible(group, getUserJID())) { item.addSharedGroup(group); if (rosterManager.isGroupVisible(group, getUserJID())) { item.addSharedGroup(group); item.setSubStatus(RosterItem.SUB_TO);