From 26c7b4d910165f9a67cbfd6bfea97257ebf33a08 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Wed, 10 Oct 2018 00:12:04 +0300 Subject: Fix Websocket notifications for service users --- juick-server/src/main/java/com/juick/server/ServerManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'juick-server') diff --git a/juick-server/src/main/java/com/juick/server/ServerManager.java b/juick-server/src/main/java/com/juick/server/ServerManager.java index cbef33a5..e3bea1c0 100644 --- a/juick-server/src/main/java/com/juick/server/ServerManager.java +++ b/juick-server/src/main/java/com/juick/server/ServerManager.java @@ -107,7 +107,7 @@ public class ServerManager implements NotificationListener { synchronized (wsHandler.getClients()) { wsHandler.getClients().stream().filter(c -> (!c.legacy && c.visitor.isAnonymous()) // anonymous users - || c.visitor.getName().equals(serviceUser) // services + || c.visitor.equals(serviceUser) // services || (!c.legacy && uids.contains(c.visitor.getUid()))) // subscriptions .forEach(c -> { try { @@ -146,7 +146,7 @@ public class ServerManager implements NotificationListener { synchronized (wsHandler.getClients()) { wsHandler.getClients().stream().filter(c -> (!c.legacy && c.visitor.isAnonymous()) // anonymous users - || c.visitor.getName().equals(serviceUser) // services + || c.visitor.equals(serviceUser) // services || (!c.legacy && threadUsers.contains(c.visitor.getUid()))) // subscriptions .forEach(c -> { try { -- cgit v1.2.3