diff options
author | Vitaly Takmazov | 2018-03-26 20:32:54 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-03-26 20:32:54 +0300 |
commit | 463aa115b9a0b396f4c606fedf2201b53320cc54 (patch) | |
tree | 786a65f6eb6fc23cff1485c4b7222bc4d27a555d /juick-server/src/main/java/com/juick | |
parent | dfc4a12e46a3707fa458bef448ec2f9e937832f2 (diff) |
server: fix telegram notifications
Diffstat (limited to 'juick-server/src/main/java/com/juick')
-rw-r--r-- | juick-server/src/main/java/com/juick/server/XMPPConnection.java | 3 |
1 files changed, 2 insertions, 1 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 db1775ac..b69156a0 100644 --- a/juick-server/src/main/java/com/juick/server/XMPPConnection.java +++ b/juick-server/src/main/java/com/juick/server/XMPPConnection.java @@ -171,10 +171,11 @@ public class XMPPConnection implements AutoCloseable { // to get quote and attachment com.juick.Message reply = messagesService.getReply(jmsg.getMid(), jmsg.getRid()); sendJuickComment(reply); + applicationEventPublisher.publishEvent(new MessageEvent(this, reply)); } else if (jmsg.getMid() > 0) { sendJuickMessage(jmsg); + applicationEventPublisher.publishEvent(new MessageEvent(this, messagesService.getMessage(jmsg.getMid()))); } - applicationEventPublisher.publishEvent(new MessageEvent(this, jmsg)); } } } else if (jid.getDomain().endsWith(bot.getJid().getDomain()) && (jid.getDomain().equals(bot.getJid().getDomain()) |