diff --git a/smack-core/src/main/java/org/jivesoftware/smack/filter/AbstractJidTypeFilter.java b/smack-core/src/main/java/org/jivesoftware/smack/filter/AbstractJidTypeFilter.java index e091d6786..502c2951e 100644 --- a/smack-core/src/main/java/org/jivesoftware/smack/filter/AbstractJidTypeFilter.java +++ b/smack-core/src/main/java/org/jivesoftware/smack/filter/AbstractJidTypeFilter.java @@ -39,7 +39,7 @@ public abstract class AbstractJidTypeFilter implements StanzaFilter { @Override public final boolean accept(Stanza stanza) { - final Jid jid = stanza.getFrom(); + final Jid jid = getJidToInspect(stanza); if (jid == null) { return false;