diff options
author | Vitaly Takmazov | 2018-04-03 17:55:46 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-04-03 17:55:54 +0300 |
commit | a5f045a3780ef8530afa7493cf090771b8fdcfe1 (patch) | |
tree | 56e4cbc6949dc9bd39672ccf379324338f0eef76 /juick-server-xmpp/src/main/java/com/juick/server/xmpp | |
parent | c53675e5eb19a1a05ae5edcd0322075d51628b96 (diff) |
refactoring: all messages are processed with XMPPConnection
Diffstat (limited to 'juick-server-xmpp/src/main/java/com/juick/server/xmpp')
-rw-r--r-- | juick-server-xmpp/src/main/java/com/juick/server/xmpp/router/XMPPRouter.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/juick-server-xmpp/src/main/java/com/juick/server/xmpp/router/XMPPRouter.java b/juick-server-xmpp/src/main/java/com/juick/server/xmpp/router/XMPPRouter.java index e70eb168..6edecf05 100644 --- a/juick-server-xmpp/src/main/java/com/juick/server/xmpp/router/XMPPRouter.java +++ b/juick-server-xmpp/src/main/java/com/juick/server/xmpp/router/XMPPRouter.java @@ -10,9 +10,11 @@ import org.xmlpull.v1.XmlPullParserException; import rocks.xmpp.addr.Jid; import rocks.xmpp.core.stanza.model.IQ; import rocks.xmpp.core.stanza.model.Message; +import rocks.xmpp.core.stanza.model.Presence; import rocks.xmpp.core.stanza.model.Stanza; import rocks.xmpp.core.stanza.model.server.ServerIQ; import rocks.xmpp.core.stanza.model.server.ServerMessage; +import rocks.xmpp.core.stanza.model.server.ServerPresence; import rocks.xmpp.util.XmppUtils; import javax.annotation.PostConstruct; @@ -166,7 +168,7 @@ public class XMPPRouter implements StreamHandler { } else if (input instanceof IQ) { sendOut(ServerIQ.from((IQ)input)); } else { - logger.warn("unhandled stanza: {}", stanza); + sendOut(ServerPresence.from((Presence) input)); } } |