diff options
author | Vitaly Takmazov | 2018-02-19 12:15:36 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-02-19 12:15:36 +0300 |
commit | 22601571a59c0e08a260b46c6ca3fb2ff37a67a2 (patch) | |
tree | 787abaf1a85c37c9dcf254af9a26fcf57b2a1973 /juick-server/src/main/java/com/juick | |
parent | 1a27dc0aeea8ccf0bc1b0845b6465adfef2bc842 (diff) |
notifications: serialize pm to
Diffstat (limited to 'juick-server/src/main/java/com/juick')
-rw-r--r-- | juick-server/src/main/java/com/juick/server/XMPPBot.java | 1 |
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); |