aboutsummaryrefslogtreecommitdiff
path: root/juick-server-xmpp/src/main/java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-04-10 12:37:02 +0300
committerGravatar Vitaly Takmazov2018-04-10 12:37:02 +0300
commitffc282136234eeb9caf169794fd25e34ee9d5bd2 (patch)
treef561960cfe9db50375c97e71e5ba8178fd0070ea /juick-server-xmpp/src/main/java
parentcc8819599c789f0c1b15301bc089eaa08e279ac4 (diff)
fix xmpp messages to bare jid
Diffstat (limited to 'juick-server-xmpp/src/main/java')
-rw-r--r--juick-server-xmpp/src/main/java/com/juick/server/XMPPConnection.java2
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