aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/main/java/com/juick/service/UserServiceImpl.java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2017-06-25 15:35:16 +0300
committerGravatar Vitaly Takmazov2017-06-25 15:35:16 +0300
commit2a5bd4a24556b0d1fa78361e747913726cfa8ce2 (patch)
tree82e56767fb969741eaaf13c1261f965716768e0a /juick-server/src/main/java/com/juick/service/UserServiceImpl.java
parent1e29c8830246a17f060654d43d970a00ce94122a (diff)
xmpp: broadcast presence only to active jids
Diffstat (limited to 'juick-server/src/main/java/com/juick/service/UserServiceImpl.java')
-rw-r--r--juick-server/src/main/java/com/juick/service/UserServiceImpl.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/juick-server/src/main/java/com/juick/service/UserServiceImpl.java b/juick-server/src/main/java/com/juick/service/UserServiceImpl.java
index 1b7cee42..6a3bb40c 100644
--- a/juick-server/src/main/java/com/juick/service/UserServiceImpl.java
+++ b/juick-server/src/main/java/com/juick/service/UserServiceImpl.java
@@ -698,7 +698,7 @@ public class UserServiceImpl extends BaseJdbcService implements UserService {
@Transactional(readOnly = true)
@Override
- public List<String> getAllJIDs() {
- return getJdbcTemplate().queryForList("SELECT jid FROM jids WHERE loginhash IS NULL", String.class);
+ public List<String> getActiveJIDs() {
+ return getJdbcTemplate().queryForList("SELECT jid FROM jids WHERE active=1 AND loginhash IS NULL", String.class);
}
}