diff options
author | Vitaly Takmazov | 2017-10-10 10:30:07 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2017-10-10 10:30:07 +0300 |
commit | 4543e857c067b72bf441e4c3f6401cf410834654 (patch) | |
tree | 884d916a4e1ce400a45ab55f362d270db7e808f2 /juick-xmpp/src/main/java/com/juick | |
parent | 9617472d697fe92b475a08ee3b196a5a66878cae (diff) |
xmpp: resource-constraint processing test
Diffstat (limited to 'juick-xmpp/src/main/java/com/juick')
-rw-r--r-- | juick-xmpp/src/main/java/com/juick/components/JuickBot.java | 6 |
1 files changed, 3 insertions, 3 deletions
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; |