From 78bc4cd5b9383320e989183942ba9ca11252a917 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 10 May 2018 14:20:19 +0300 Subject: notifications: do not process message read event twice --- .../src/main/java/com/juick/components/Notifications.java | 1 + 1 file changed, 1 insertion(+) diff --git a/juick-notifications/src/main/java/com/juick/components/Notifications.java b/juick-notifications/src/main/java/com/juick/components/Notifications.java index 32ae1dc6..7b3f823e 100644 --- a/juick-notifications/src/main/java/com/juick/components/Notifications.java +++ b/juick-notifications/src/main/java/com/juick/components/Notifications.java @@ -94,6 +94,7 @@ public class Notifications extends TextWebSocketHandler implements NotificationC public void messageReceived(@Nonnull com.juick.Message jmsg) { if (jmsg.isService()) { serviceMessageReceived(jmsg); + return; } User pmTo = jmsg.getTo(); final List users = new ArrayList<>(); -- cgit v1.2.3