aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/api/PM.java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-05-19 23:24:22 +0300
committerGravatar Vitaly Takmazov2016-05-19 23:24:22 +0300
commit7fb8cdfb02c24c265a081499c858f3aca1efbb2b (patch)
tree87f8764cf0baf4d3dc6de7b2d19fda827a16b1cb /src/main/java/com/juick/api/PM.java
parentce8cef088e7fa1b31a5aa59bb3111600863bc432 (diff)
update server api and try to fix anonymous chats
Diffstat (limited to 'src/main/java/com/juick/api/PM.java')
-rw-r--r--src/main/java/com/juick/api/PM.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/juick/api/PM.java b/src/main/java/com/juick/api/PM.java
index 3ca9eada..c7123d0a 100644
--- a/src/main/java/com/juick/api/PM.java
+++ b/src/main/java/com/juick/api/PM.java
@@ -77,7 +77,7 @@ public class PM {
msg.from = new JID("juick", "juick.com", null);
msg.to = new JID(Integer.toString(uid), "push.juick.com", null);
JuickMessage jmsg = new JuickMessage();
- jmsg.setUser(UserQueries.getUserByUID(sql, vuid));
+ jmsg.setUser(UserQueries.getUserByUID(sql, vuid).get());
jmsg.setText(body);
msg.childs.add(jmsg);
xmpp.send(msg);