From 8de54c2e88dc3a39364a126a007923dfe68d6d26 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 25 Oct 2018 15:07:31 +0300 Subject: SSE: fix service messages --- juick-server/src/main/java/com/juick/server/ServerManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'juick-server/src/main/java/com/juick/server/ServerManager.java') 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 e3bea1c0..0183c616 100644 --- a/juick-server/src/main/java/com/juick/server/ServerManager.java +++ b/juick-server/src/main/java/com/juick/server/ServerManager.java @@ -179,6 +179,7 @@ public class ServerManager implements NotificationListener { com.juick.Message jmsg = event.getMessage(); List subscribedUsers = event.getUsers(); if (jmsg.isService()) { + sendSseEvent(jmsg, Collections.singletonList(serviceUser)); return; } if (MessageUtils.isPM(jmsg)) { @@ -195,7 +196,6 @@ public class ServerManager implements NotificationListener { .forEach(b -> messagesService.setLastReadComment(b, reply.getMid(), reply.getRid())); onJuickMessageReply(reply, subscribedUsers); } - sendSseEvent(jmsg, Collections.singletonList(serviceUser)); } @Override -- cgit v1.2.3