aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/api/PM.java
diff options
context:
space:
mode:
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;