From 78c4cd9c3cfd7e56777390eb81b3f7d2ca2d5731 Mon Sep 17 00:00:00 2001 From: Gaston Dombiak Date: Wed, 24 Sep 2003 18:08:18 +0000 Subject: [PATCH] changed removal roster entries logic git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2103 b35dd754-fafc-0310-a699-88a17e54d16e --- source/org/jivesoftware/smack/RosterGroup.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source/org/jivesoftware/smack/RosterGroup.java b/source/org/jivesoftware/smack/RosterGroup.java index b9d734caa..c919ad8e3 100644 --- a/source/org/jivesoftware/smack/RosterGroup.java +++ b/source/org/jivesoftware/smack/RosterGroup.java @@ -217,12 +217,14 @@ public class RosterGroup { */ public void removeEntry(RosterEntry entry) { // Only remove the entry if it's in the entry list. + // The actual removal logic takes place in RosterPacketListenerprocess>>Packet(Packet) synchronized (entries) { if (entries.contains(entry)) { - entries.remove(entry); RosterPacket packet = new RosterPacket(); packet.setType(IQ.Type.SET); - packet.addRosterItem(RosterEntry.toRosterItem(entry)); + RosterPacket.Item item = RosterEntry.toRosterItem(entry); + item.removeGroupName(this.getName()); + packet.addRosterItem(item); connection.sendPacket(packet); } }