From 2a5bd4a24556b0d1fa78361e747913726cfa8ce2 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sun, 25 Jun 2017 15:35:16 +0300 Subject: xmpp: broadcast presence only to active jids --- juick-xmpp/src/main/java/com/juick/components/s2s/JuickBot.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'juick-xmpp/src/main/java') 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)); -- cgit v1.2.3