mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-12-23 13:07:59 +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:
parent
74fe845eae
commit
5449a6177c
1 changed files with 3 additions and 1 deletions
|
@ -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()));
|
||||
|
|
Loading…
Reference in a new issue