From 22601571a59c0e08a260b46c6ca3fb2ff37a67a2 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 19 Feb 2018 12:15:36 +0300 Subject: notifications: serialize pm to --- juick-server/src/main/java/com/juick/server/XMPPBot.java | 1 + 1 file changed, 1 insertion(+) (limited to 'juick-server/src/main/java') diff --git a/juick-server/src/main/java/com/juick/server/XMPPBot.java b/juick-server/src/main/java/com/juick/server/XMPPBot.java index a515d066..d9a53395 100644 --- a/juick-server/src/main/java/com/juick/server/XMPPBot.java +++ b/juick-server/src/main/java/com/juick/server/XMPPBot.java @@ -251,6 +251,7 @@ public class XMPPBot implements StanzaListener, AutoCloseable { m.setTo(Jid.of(Integer.toString(uid_to), "push.juick.com", null)); com.juick.Message jmsg = new com.juick.Message(); jmsg.setUser(user_from); + jmsg.setTo(userService.getUserByUID(uid_to).get()); jmsg.setText(msg.getBody()); m.addExtension(jmsg); router.sendStanza(m); -- cgit v1.2.3