From 5449a6177ce4cf82e3e44ce11a3beaf5df902233 Mon Sep 17 00:00:00 2001 From: Gaston Dombiak Date: Fri, 14 Oct 2005 19:45:14 +0000 Subject: [PATCH] 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 --- source/org/jivesoftware/smack/RosterGroup.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/org/jivesoftware/smack/RosterGroup.java b/source/org/jivesoftware/smack/RosterGroup.java index 7f653bc96..2d740e5ba 100644 --- a/source/org/jivesoftware/smack/RosterGroup.java +++ b/source/org/jivesoftware/smack/RosterGroup.java @@ -180,7 +180,9 @@ public class RosterGroup { if (!entries.contains(entry)) { RosterPacket packet = new RosterPacket(); 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. collector = connection .createPacketCollector(new PacketIDFilter(packet.getPacketID()));