1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-23 04:22:05 +01:00

Include roster group when adding new entry to group. SMACK-92

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2970 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Gaston Dombiak 2005-10-14 19:45:14 +00:00 committed by gato
parent 74fe845eae
commit 5449a6177c

View file

@ -180,7 +180,9 @@ public class RosterGroup {
if (!entries.contains(entry)) { if (!entries.contains(entry)) {
RosterPacket packet = new RosterPacket(); RosterPacket packet = new RosterPacket();
packet.setType(IQ.Type.SET); packet.setType(IQ.Type.SET);
packet.addRosterItem(RosterEntry.toRosterItem(entry)); RosterPacket.Item item = RosterEntry.toRosterItem(entry);
item.addGroupName(getName());
packet.addRosterItem(item);
// Wait up to a certain number of seconds for a reply from the server. // Wait up to a certain number of seconds for a reply from the server.
collector = connection collector = connection
.createPacketCollector(new PacketIDFilter(packet.getPacketID())); .createPacketCollector(new PacketIDFilter(packet.getPacketID()));