diff --git a/source/org/jivesoftware/smack/packet/RosterPacket.java b/source/org/jivesoftware/smack/packet/RosterPacket.java index bebc6e8fd..853820d00 100644 --- a/source/org/jivesoftware/smack/packet/RosterPacket.java +++ b/source/org/jivesoftware/smack/packet/RosterPacket.java @@ -119,6 +119,7 @@ public class RosterPacket extends IQ { private String user; private String name; private ItemType itemType; + private ItemStatus itemStatus; private List groupNames; /** @@ -131,6 +132,7 @@ public class RosterPacket extends IQ { this.user = user; this.name = name; itemType = null; + itemStatus = null; groupNames = new ArrayList(); } @@ -224,6 +226,9 @@ public class RosterPacket extends IQ { if (itemType != null) { buf.append(" subscription=\"").append(itemType).append("\""); } + if (itemStatus != null) { + buf.append(" ask=\"").append(itemStatus).append("\""); + } buf.append(">"); synchronized (groupNames) { for (int i=0; i