aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/main
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-02-19 12:15:36 +0300
committerGravatar Vitaly Takmazov2018-02-19 12:15:36 +0300
commit22601571a59c0e08a260b46c6ca3fb2ff37a67a2 (patch)
tree787abaf1a85c37c9dcf254af9a26fcf57b2a1973 /juick-server/src/main
parent1a27dc0aeea8ccf0bc1b0845b6465adfef2bc842 (diff)
notifications: serialize pm to
Diffstat (limited to 'juick-server/src/main')
-rw-r--r--juick-server/src/main/java/com/juick/server/XMPPBot.java1
1 files changed, 1 insertions, 0 deletions
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);