mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-12-22 20:47:57 +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