diff options
author | Vitaly Takmazov | 2018-03-21 16:49:47 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-03-21 16:49:47 +0300 |
commit | 30be81436f83a035a4f15c876d94da259c375c8c (patch) | |
tree | d1e35d687ebfd10a3d0708ea23341fb8a8ab6b99 /juick-server/src/main/java/com | |
parent | 2920e943b68ca66a81f8ddac43dd6eed9d9a42b6 (diff) |
xmpp: refactoring
Diffstat (limited to 'juick-server/src/main/java/com')
-rw-r--r-- | juick-server/src/main/java/com/juick/server/XMPPBot.java | 3 |
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)); } }; |