From c601197c9da88ff1972c4621ffc982f67222bacc Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Tue, 17 Jul 2018 13:24:59 +0300 Subject: XMPP: route messages over XMPPRouter/babbler component --- juick-server/src/main/java/com/juick/server/XMPPConnection.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'juick-server') diff --git a/juick-server/src/main/java/com/juick/server/XMPPConnection.java b/juick-server/src/main/java/com/juick/server/XMPPConnection.java index cbc4d54b..701a7d5b 100644 --- a/juick-server/src/main/java/com/juick/server/XMPPConnection.java +++ b/juick-server/src/main/java/com/juick/server/XMPPConnection.java @@ -630,10 +630,7 @@ public class XMPPConnection implements StanzaListener, NotificationListener { } } else if (xmlValue instanceof Message) { Message msg = (Message) xmlValue; - ClientMessage result = incomingMessage(msg); - if (result != null) { - router.send(result); - } + router.send(msg); } else if (xmlValue instanceof IQ) { IQ iq = (IQ) xmlValue; router.send(iq); -- cgit v1.2.3