mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-26 14:02:06 +01:00
SMACK-293: Support optional roster subscription attribute
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@11642 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
824fb3ad7d
commit
a441d856f8
1 changed files with 2 additions and 2 deletions
|
@ -365,7 +365,7 @@ public class PacketParserUtils {
|
||||||
item.setItemStatus(status);
|
item.setItemStatus(status);
|
||||||
// Set type.
|
// Set type.
|
||||||
String subscription = parser.getAttributeValue("", "subscription");
|
String subscription = parser.getAttributeValue("", "subscription");
|
||||||
RosterPacket.ItemType type = RosterPacket.ItemType.valueOf(subscription);
|
RosterPacket.ItemType type = RosterPacket.ItemType.valueOf(subscription != null ? subscription : "none");
|
||||||
item.setItemType(type);
|
item.setItemType(type);
|
||||||
}
|
}
|
||||||
if (parser.getName().equals("group") && item!= null) {
|
if (parser.getName().equals("group") && item!= null) {
|
||||||
|
@ -833,4 +833,4 @@ public class PacketParserUtils {
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue