aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/main/java/com/juick
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-04-02 13:26:28 +0300
committerGravatar Vitaly Takmazov2018-04-02 13:26:28 +0300
commit84d960a1d82a5619c65ab59a00e86644f53200a3 (patch)
tree5a3fa83820469e8f0f9a1e408fbe8b62dc05721e /juick-server/src/main/java/com/juick
parent0a44ec2654875f6a25e37009cd3f16dd1b6815df (diff)
xmpp: process all messages
Diffstat (limited to 'juick-server/src/main/java/com/juick')
-rw-r--r--juick-server/src/main/java/com/juick/server/xmpp/s2s/ConnectionIn.java13
1 files changed, 5 insertions, 8 deletions
diff --git a/juick-server/src/main/java/com/juick/server/xmpp/s2s/ConnectionIn.java b/juick-server/src/main/java/com/juick/server/xmpp/s2s/ConnectionIn.java
index 48cf2de4..9ee81d4d 100644
--- a/juick-server/src/main/java/com/juick/server/xmpp/s2s/ConnectionIn.java
+++ b/juick-server/src/main/java/com/juick/server/xmpp/s2s/ConnectionIn.java
@@ -197,14 +197,11 @@ public class ConnectionIn extends Connection implements Runnable {
boolean checkFromTo(XmlPullParser parser) throws Exception {
String cfrom = parser.getAttributeValue(null, "from");
String cto = parser.getAttributeValue(null, "to");
- if (StringUtils.isNotEmpty(cfrom) && StringUtils.isNotEmpty(cto)) {
- Jid jidto = Jid.of(cto);
- if (jidto.getDomain().equals(xmpp.getJid().toEscapedString())) {
- Jid jidfrom = Jid.of(cfrom);
- for (Jid aFrom : from) {
- if (aFrom.equals(Jid.of(jidfrom.getDomain()))) {
- return true;
- }
+ if (StringUtils.isNotEmpty(cfrom) && StringUtils.isNotEmpty(cto)) {
+ Jid jidfrom = Jid.of(cfrom);
+ for (Jid aFrom : from) {
+ if (aFrom.equals(Jid.of(jidfrom.getDomain()))) {
+ return true;
}
}
}