mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-12-23 13:07:59 +01:00
changed removal roster entries logic
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2103 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
5286cb3895
commit
78c4cd9c3c
1 changed files with 4 additions and 2 deletions
|
@ -217,12 +217,14 @@ public class RosterGroup {
|
||||||
*/
|
*/
|
||||||
public void removeEntry(RosterEntry entry) {
|
public void removeEntry(RosterEntry entry) {
|
||||||
// Only remove the entry if it's in the entry list.
|
// Only remove the entry if it's in the entry list.
|
||||||
|
// The actual removal logic takes place in RosterPacketListenerprocess>>Packet(Packet)
|
||||||
synchronized (entries) {
|
synchronized (entries) {
|
||||||
if (entries.contains(entry)) {
|
if (entries.contains(entry)) {
|
||||||
entries.remove(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.removeGroupName(this.getName());
|
||||||
|
packet.addRosterItem(item);
|
||||||
connection.sendPacket(packet);
|
connection.sendPacket(packet);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue