if (currentGroup != null)
{
//backend.changeGroup(jidStatus,currentGroup,group);
groups.remove(currentGroup);
groups.add(group);
IQXRoster roster = new IQXRoster(new RosterItem(jidStatus.getJID(), jidStatus.getNick(), null, null, groups));
backend.send(new InfoQuery("set", roster));
} else
{
if (!jidStatus.isGroupPresent(group))
{
groups.add(group);
IQXRoster roster = new IQXRoster(new RosterItem(jidStatus.getJID(), jidStatus.getNick(), null, null, groups));
backend.send(new InfoQuery("set", roster));
//backend.addGroup(jidStatus,group);
}
}
}