From 7b02479f66376f0ca34ddf67a3de07f831b2ee1e Mon Sep 17 00:00:00 2001 From: Matt Tucker Date: Fri, 25 Apr 2003 20:20:55 +0000 Subject: [PATCH] Support for pending roster items. git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@1902 b35dd754-fafc-0310-a699-88a17e54d16e --- source/org/jivesoftware/smack/packet/RosterPacket.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/org/jivesoftware/smack/packet/RosterPacket.java b/source/org/jivesoftware/smack/packet/RosterPacket.java index dc64d6360..6a57c566f 100644 --- a/source/org/jivesoftware/smack/packet/RosterPacket.java +++ b/source/org/jivesoftware/smack/packet/RosterPacket.java @@ -269,6 +269,7 @@ public class RosterPacket extends IQ { public static class ItemType { public static final ItemType NONE = new ItemType("none"); + public static final ItemType PENDING = new ItemType("pending"); public static final ItemType TO = new ItemType("to"); public static final ItemType FROM = new ItemType("from"); public static final ItemType BOTH = new ItemType("both"); @@ -277,6 +278,9 @@ public class RosterPacket extends IQ { if ("none".equals(value)) { return NONE; } + if ("pending".equals(value)) { + return PENDING; + } else if ("to".equals(value)) { return TO; }