diff options
author | Vitaly Takmazov | 2018-10-25 15:07:31 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-10-25 15:07:31 +0300 |
commit | 8de54c2e88dc3a39364a126a007923dfe68d6d26 (patch) | |
tree | 4101ee6579e10a536223311ebc559b2cf85dd323 /juick-server/src/main | |
parent | 1fde5c89df98dc91593d3da398a790fe12f17d29 (diff) |
SSE: fix service messages
Diffstat (limited to 'juick-server/src/main')
-rw-r--r-- | juick-server/src/main/java/com/juick/server/ServerManager.java | 2 |
1 files changed, 1 insertions, 1 deletions
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<User> 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 |