mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-26 05:52:06 +01:00
Use Message.hasStanzaIdSet() in EligibleForChatMarker filter
This commit is contained in:
parent
0b9cce507d
commit
3f1b18636e
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue