From 036a67e5571b39a1f4b65f6f94bfdfcd58097ebc Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 19 Feb 2018 17:26:12 +0300 Subject: push notifications are not using xmpp anymore --- .../src/main/java/com/juick/www/controllers/NewMessage.java | 9 --------- 1 file changed, 9 deletions(-) (limited to 'juick-www/src') 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); -- cgit v1.2.3