diff options
author | Vitaly Takmazov | 2018-03-28 21:19:07 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-03-28 21:19:07 +0300 |
commit | 4b3ddcd138af69f504a9a08281edc1c2e7eb0c7a (patch) | |
tree | d1e6b3cc63184564a0ab3d7c59513e5e46b15b1c /juick-server/src/main/java/com/juick/server/XMPPConnection.java | |
parent | 31226138eb63b25a3b666ad782412a2024b50f74 (diff) |
PM events
Diffstat (limited to 'juick-server/src/main/java/com/juick/server/XMPPConnection.java')
-rw-r--r-- | juick-server/src/main/java/com/juick/server/XMPPConnection.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/juick-server/src/main/java/com/juick/server/XMPPConnection.java b/juick-server/src/main/java/com/juick/server/XMPPConnection.java index 25c77d74..2176317f 100644 --- a/juick-server/src/main/java/com/juick/server/XMPPConnection.java +++ b/juick-server/src/main/java/com/juick/server/XMPPConnection.java @@ -170,6 +170,8 @@ public class XMPPConnection implements AutoCloseable { User fromUser = jmsg.getUser(); com.juick.Message msg = messagesService.getMessage(jmsg.getMid()); applicationEventPublisher.publishEvent(new LikeEvent(this, fromUser, msg)); + } else if (jid.getLocal().equals("pm")) { + applicationEventPublisher.publishEvent(new MessageEvent(this, jmsg)); } else { if (jmsg.getRid() > 0) { // to get quote and attachment |