From 3f1b18636e8584fff8443affbef7f4e67dc8a28f Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Thu, 6 Sep 2018 18:52:55 +0200 Subject: [PATCH] Use Message.hasStanzaIdSet() in EligibleForChatMarker filter --- .../smackx/chat_markers/filter/EligibleForChatMarker.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/smack-experimental/src/main/java/org/jivesoftware/smackx/chat_markers/filter/EligibleForChatMarker.java b/smack-experimental/src/main/java/org/jivesoftware/smackx/chat_markers/filter/EligibleForChatMarker.java index cdce44625..9f8f93c3d 100644 --- a/smack-experimental/src/main/java/org/jivesoftware/smackx/chat_markers/filter/EligibleForChatMarker.java +++ b/smack-experimental/src/main/java/org/jivesoftware/smackx/chat_markers/filter/EligibleForChatMarker.java @@ -19,7 +19,6 @@ package org.jivesoftware.smackx.chat_markers.filter; import org.jivesoftware.smack.filter.StanzaExtensionFilter; import org.jivesoftware.smack.packet.ExtensionElement; import org.jivesoftware.smack.packet.Stanza; -import org.jivesoftware.smack.util.StringUtils; import org.jivesoftware.smackx.chatstates.ChatState; import org.jivesoftware.smackx.chatstates.ChatStateManager; @@ -51,7 +50,7 @@ public final class EligibleForChatMarker extends StanzaExtensionFilter { */ @Override public boolean accept(Stanza message) { - if (StringUtils.isNullOrEmpty(message.getStanzaId())) { + if (!message.hasStanzaIdSet()) { return false; }