aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/api/PM.java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-06-27 16:38:56 +0300
committerGravatar Vitaly Takmazov2016-06-27 16:38:56 +0300
commit1f631483bbed66a5afee88eb8341880a40075a7c (patch)
tree796f2b5ff5a8002fa9dfdab28f1bd3762fa8b4f8 /src/main/java/com/juick/api/PM.java
parent5df4a0d2631e31e4c035aaedec1d6d50e3bdb098 (diff)
fix compilation
Diffstat (limited to 'src/main/java/com/juick/api/PM.java')
-rw-r--r--src/main/java/com/juick/api/PM.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/juick/api/PM.java b/src/main/java/com/juick/api/PM.java
index c7123d0a..631ae978 100644
--- a/src/main/java/com/juick/api/PM.java
+++ b/src/main/java/com/juick/api/PM.java
@@ -87,8 +87,8 @@ public class PM {
Main.replyJSON(request, response, messageSerializer.serialize(jmsg).toString());
- String jid = UserQueries.getJIDbyUID(sql, uid);
- if (jid != null) {
+ List<String> jids = UserQueries.getJIDsbyUID(sql, uid);
+ for (String jid: jids) {
Message mm = new Message();
mm.to = new JID(jid);
mm.type = Message.Type.chat;