From ffc282136234eeb9caf169794fd25e34ee9d5bd2 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Tue, 10 Apr 2018 12:37:02 +0300 Subject: fix xmpp messages to bare jid --- juick-server-xmpp/src/main/java/com/juick/server/XMPPConnection.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'juick-server-xmpp/src/main/java/com/juick') 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 -- cgit v1.2.3