mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-22 06:12:05 +01:00
pep: Use EventItemsExtensionFilter
This commit is contained in:
parent
2c6f444bab
commit
7f027bd339
1 changed files with 2 additions and 3 deletions
|
@ -52,7 +52,7 @@ import org.jivesoftware.smackx.pubsub.PayloadItem;
|
|||
import org.jivesoftware.smackx.pubsub.PubSubException.NotALeafNodeException;
|
||||
import org.jivesoftware.smackx.pubsub.PubSubFeature;
|
||||
import org.jivesoftware.smackx.pubsub.PubSubManager;
|
||||
import org.jivesoftware.smackx.pubsub.filter.EventExtensionFilter;
|
||||
import org.jivesoftware.smackx.pubsub.filter.EventItemsExtensionFilter;
|
||||
|
||||
import org.jxmpp.jid.BareJid;
|
||||
import org.jxmpp.jid.EntityBareJid;
|
||||
|
@ -92,10 +92,9 @@ public final class PepManager extends Manager {
|
|||
return pepManager;
|
||||
}
|
||||
|
||||
// TODO: Filter only for event extensions with <items/> as child.
|
||||
private static final StanzaFilter FROM_BARE_JID_WITH_EVENT_EXTENSION_FILTER = new AndFilter(
|
||||
new FromJidTypeFilter(JidType.BareJid),
|
||||
EventExtensionFilter.INSTANCE);
|
||||
EventItemsExtensionFilter.INSTANCE);
|
||||
|
||||
private final Set<PepListener> pepListeners = new CopyOnWriteArraySet<>();
|
||||
|
||||
|
|
Loading…
Reference in a new issue