aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-03-21 16:49:47 +0300
committerGravatar Vitaly Takmazov2018-03-21 16:49:47 +0300
commit30be81436f83a035a4f15c876d94da259c375c8c (patch)
treed1e35d687ebfd10a3d0708ea23341fb8a8ab6b99
parent2920e943b68ca66a81f8ddac43dd6eed9d9a42b6 (diff)
xmpp: refactoring
-rw-r--r--juick-server/src/main/java/com/juick/server/XMPPBot.java3
1 files changed, 0 insertions, 3 deletions
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<String> activeJids = userService.getActiveJIDs();
userService.getJIDsbyUID(msg.getUser().getUid())
- .stream()
- .filter(activeJids::contains)
.forEach(jid -> sendReply(Jid.of(jid), notify));
}
};