I’m using the Smack library in my Android app and I want to - in some cases - disable all incoming presence stanzas. According to the XMPP spec it looks like PrivacyLists are the way to go.
In order to block all incoming presence stanzas I need the PrivacyItem to have no type but currently I can’t find a way to create a PrivacyItem without a type. The constructor for PrivacyItem needs a type parameter and it throws exceptions if the passed type is null or not in PrivacyItem.Type.
Is there any way to send a PrivacyList with an item that has no type? Like in the following example message.