diff options
author | 2018-04-10 12:37:02 +0300 | |
---|---|---|
committer | 2018-04-10 12:37:02 +0300 | |
commit | ffc282136234eeb9caf169794fd25e34ee9d5bd2 (patch) | |
tree | f561960cfe9db50375c97e71e5ba8178fd0070ea /juick-server-xmpp | |
parent | cc8819599c789f0c1b15301bc089eaa08e279ac4 (diff) |
fix xmpp messages to bare jid
Diffstat (limited to 'juick-server-xmpp')
-rw-r--r-- | juick-server-xmpp/src/main/java/com/juick/server/XMPPConnection.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/juick-server-xmpp/src/main/java/com/juick/server/XMPPConnection.java b/juick-server-xmpp/src/main/java/com/juick/server/XMPPConnection.java index 4d1a73a8..e1fa92ed 100644 --- a/juick-server-xmpp/src/main/java/com/juick/server/XMPPConnection.java +++ b/juick-server-xmpp/src/main/java/com/juick/server/XMPPConnection.java @@ -570,7 +570,7 @@ public class XMPPConnection implements StanzaListener, NotificationListener { attachment = oobX.getUri(); } try { - if (msg.getTo().equals(jid)) { + if (msg.getTo().asBareJid().equals(jid.asBareJid())) { return incomingMessageJuick(user_from, msg.getFrom(), StringUtils.defaultString(msg.getBody()), attachment); } else { // PM |