diff options
author | Vitaly Takmazov | 2018-05-10 12:50:08 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-05-10 12:50:08 +0300 |
commit | fb540605626e1c7bb1544a518a254e6a820afcb3 (patch) | |
tree | b370df3f031a1a72a34b64bc197cd600b6947f5d /juick-server/src/main/java/com/juick/server/XMPPConnection.java | |
parent | d2a1f21717c8583c9804c69319123fb7ebaac261 (diff) |
server: MessageReadEvent
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 | 15 |
1 files changed, 10 insertions, 5 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 0975611a..2c21a973 100644 --- a/juick-server/src/main/java/com/juick/server/XMPPConnection.java +++ b/juick-server/src/main/java/com/juick/server/XMPPConnection.java @@ -18,10 +18,7 @@ package com.juick.server; import com.juick.User; -import com.juick.server.component.LikeEvent; -import com.juick.server.component.MessageEvent; -import com.juick.server.component.PingEvent; -import com.juick.server.component.SubscribeEvent; +import com.juick.server.component.*; import com.juick.server.helpers.CommandResult; import com.juick.server.helpers.UserInfo; import com.juick.server.xmpp.iq.MessageQuery; @@ -346,6 +343,9 @@ public class XMPPConnection implements StanzaListener, NotificationListener { public void processMessageEvent(MessageEvent event) { com.juick.Message msg = event.getMessage(); List<User> subscribers = event.getUsers(); + if (msg.isService()) { + return; + } if (MessageUtils.isPM(msg)) { userService.getJIDsbyUID(msg.getTo().getUid()) .forEach(userJid -> { @@ -434,7 +434,7 @@ public class XMPPConnection implements StanzaListener, NotificationListener { } @Override - public void ProcessPingEvent(PingEvent pingEvent) { + public void processPingEvent(PingEvent pingEvent) { userService.getJIDsbyUID(pingEvent.getPinger().getUid()) .forEach(userJid -> { Presence p = new Presence(Jid.of(userJid)); @@ -444,6 +444,11 @@ public class XMPPConnection implements StanzaListener, NotificationListener { }); } + @Override + public void processMessageReadEvent(MessageReadEvent messageReadEvent) { + + } + private void incomingPresence(Presence p) { final String username = p.getTo().getLocal(); final boolean toJuick = username.equals(jid.getLocal()); |