From 30be81436f83a035a4f15c876d94da259c375c8c Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Wed, 21 Mar 2018 16:49:47 +0300 Subject: xmpp: refactoring --- juick-server/src/main/java/com/juick/server/XMPPBot.java | 3 --- 1 file changed, 3 deletions(-) (limited to 'juick-server/src/main') diff --git a/juick-server/src/main/java/com/juick/server/XMPPBot.java b/juick-server/src/main/java/com/juick/server/XMPPBot.java index c29fa188..e9eacdd7 100644 --- a/juick-server/src/main/java/com/juick/server/XMPPBot.java +++ b/juick-server/src/main/java/com/juick/server/XMPPBot.java @@ -99,10 +99,7 @@ public class XMPPBot implements StanzaListener, AutoCloseable { com.juick.Message msg = event.getMessage(); if (msg.getRid() == 0 && msg.getMid() > 0) { String notify = "New message posted.\n#" + msg.getMid() + " https://juick.com/" + msg.getMid(); - List activeJids = userService.getActiveJIDs(); userService.getJIDsbyUID(msg.getUser().getUid()) - .stream() - .filter(activeJids::contains) .forEach(jid -> sendReply(Jid.of(jid), notify)); } }; -- cgit v1.2.3