diff options
author | Vitaly Takmazov | 2017-06-25 15:35:16 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2017-06-25 15:35:16 +0300 |
commit | 2a5bd4a24556b0d1fa78361e747913726cfa8ce2 (patch) | |
tree | 82e56767fb969741eaaf13c1261f965716768e0a /juick-xmpp/src/main/java/com/juick/components | |
parent | 1e29c8830246a17f060654d43d970a00ce94122a (diff) |
xmpp: broadcast presence only to active jids
Diffstat (limited to 'juick-xmpp/src/main/java/com/juick/components')
-rw-r--r-- | juick-xmpp/src/main/java/com/juick/components/s2s/JuickBot.java | 2 |
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)); |