From 4543e857c067b72bf441e4c3f6401cf410834654 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Tue, 10 Oct 2017 10:30:07 +0300 Subject: xmpp: resource-constraint processing test --- juick-xmpp/src/main/java/com/juick/components/JuickBot.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'juick-xmpp/src/main/java/com/juick') diff --git a/juick-xmpp/src/main/java/com/juick/components/JuickBot.java b/juick-xmpp/src/main/java/com/juick/components/JuickBot.java index 205e3f90..a9ee9698 100644 --- a/juick-xmpp/src/main/java/com/juick/components/JuickBot.java +++ b/juick-xmpp/src/main/java/com/juick/components/JuickBot.java @@ -204,9 +204,6 @@ public class JuickBot implements StanzaListener, AutoCloseable { } public boolean incomingMessage(Message msg) { - if (StringUtils.isBlank(msg.getBody())) { - return false; - } if (msg.getType() != null && msg.getType().equals(Message.Type.ERROR)) { StanzaError error = msg.getExtension(StanzaError.class); if (error != null && error.getCondition().equals(Condition.RESOURCE_CONSTRAINT)) { @@ -218,6 +215,9 @@ public class JuickBot implements StanzaListener, AutoCloseable { } return false; } + if (StringUtils.isBlank(msg.getBody())) { + return false; + } String username = msg.getTo().getLocal(); User user_from; -- cgit v1.2.3