aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/main
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-03-26 20:32:54 +0300
committerGravatar Vitaly Takmazov2018-03-26 20:32:54 +0300
commit463aa115b9a0b396f4c606fedf2201b53320cc54 (patch)
tree786a65f6eb6fc23cff1485c4b7222bc4d27a555d /juick-server/src/main
parentdfc4a12e46a3707fa458bef448ec2f9e937832f2 (diff)
server: fix telegram notifications
Diffstat (limited to 'juick-server/src/main')
-rw-r--r--juick-server/src/main/java/com/juick/server/XMPPConnection.java3
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())