aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-05-10 14:03:46 +0300
committerGravatar Vitaly Takmazov2018-05-10 14:03:46 +0300
commit92d6239a05f2eefa69505e4e6570045290b00b94 (patch)
treea137e68aa53553d13733d05135af23511f10bcb6 /juick-server/src
parentd1cbf30bf1de274ca33d51e52603c9422b7874d1 (diff)
message read event logging
Diffstat (limited to 'juick-server/src')
-rw-r--r--juick-server/src/main/java/com/juick/server/ServerManager.java1
1 files changed, 1 insertions, 0 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 fa266c77..b6e3afcf 100644
--- a/juick-server/src/main/java/com/juick/server/ServerManager.java
+++ b/juick-server/src/main/java/com/juick/server/ServerManager.java
@@ -193,6 +193,7 @@ public class ServerManager implements NotificationListener {
public void processMessageReadEvent(MessageReadEvent messageReadEvent) {
User userTo = messageReadEvent.getUser();
Message source = messageReadEvent.getMessage();
+ logger.info("Message read event from {} for {}", userTo.getName(), source.getMid());
wsHandler.getClients().stream().filter(c ->
(!c.legacy && c.visitor.getUid() == userTo.getUid()) || c.visitor.getName().equals(serviceUser)
).forEach(u -> {