aboutsummaryrefslogtreecommitdiff
path: root/juick-xmpp
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-xmpp
parent1e29c8830246a17f060654d43d970a00ce94122a (diff)
xmpp: broadcast presence only to active jids
Diffstat (limited to 'juick-xmpp')
-rw-r--r--juick-xmpp/src/main/java/com/juick/components/s2s/JuickBot.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/juick-xmpp/src/main/java/com/juick/components/s2s/JuickBot.java b/juick-xmpp/src/main/java/com/juick/components/s2s/JuickBot.java
index 5b6dd353..52dbdb2b 100644
--- a/juick-xmpp/src/main/java/com/juick/components/s2s/JuickBot.java
+++ b/juick-xmpp/src/main/java/com/juick/components/s2s/JuickBot.java
@@ -480,7 +480,7 @@ public class JuickBot implements StanzaListener, AutoCloseable {
if (type != null) {
presence.setType(type);
}
- xmpp.userService.getAllJIDs().forEach(j -> {
+ xmpp.userService.getActiveJIDs().forEach(j -> {
try {
presence.setTo(Jid.of(j));
xmpp.sendOut(ClientPresence.from(presence));