diff options
author | Vitaly Takmazov | 2018-02-19 17:26:12 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-02-19 17:26:12 +0300 |
commit | 036a67e5571b39a1f4b65f6f94bfdfcd58097ebc (patch) | |
tree | 188e10399f661750c8eda97ac0cd11154fab5852 /juick-www | |
parent | 22601571a59c0e08a260b46c6ca3fb2ff37a67a2 (diff) |
push notifications are not using xmpp anymore
Diffstat (limited to 'juick-www')
-rw-r--r-- | juick-www/src/main/java/com/juick/www/controllers/NewMessage.java | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/juick-www/src/main/java/com/juick/www/controllers/NewMessage.java b/juick-www/src/main/java/com/juick/www/controllers/NewMessage.java index c9a1d572..8cf70291 100644 --- a/juick-www/src/main/java/com/juick/www/controllers/NewMessage.java +++ b/juick-www/src/main/java/com/juick/www/controllers/NewMessage.java @@ -156,9 +156,6 @@ public class NewMessage { xmsg.setTo(Jid.of("juick@ws.juick.com")); webApp.getXmpp().send(xmsg); - xmsg.setTo(Jid.of("juick@push.juick.com")); - webApp.getXmpp().send(xmsg); - xmsg.setTo(Jid.of("jubo@nologin.ru")); webApp.getXmpp().send(xmsg); } else { @@ -287,9 +284,6 @@ public class NewMessage { xmsg.setTo(Jid.of("juick@ws.juick.com")); webApp.getXmpp().send(xmsg); - - xmsg.setTo(Jid.of("juick@push.juick.com")); - webApp.getXmpp().send(xmsg); } else { logger.warn("XMPP unavailable"); } @@ -361,14 +355,11 @@ public class NewMessage { if (webApp.getXmpp() != null) { Message msg = new Message(); msg.setFrom(Jid.of("juick@juick.com")); - msg.setTo(Jid.of(String.format("%d@push.juick.com", userTo.getUid()))); com.juick.Message jmsg = new com.juick.Message(); jmsg.setUser(visitor); jmsg.setText(body); jmsg.setTo(userTo); msg.addExtension(jmsg); - webApp.getXmpp().send(msg); - msg.setTo(Jid.of(String.format("%d@ws.juick.com", userTo.getUid()))); webApp.getXmpp().send(msg); |