aboutsummaryrefslogtreecommitdiff
path: root/juick-xmpp/src/main
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2017-02-07 12:17:40 +0300
committerGravatar Vitaly Takmazov2017-02-07 12:17:40 +0300
commitb8af9d2621a1cd94bfb24ee31e5a92d9f4e56c4e (patch)
treef5a404cd7fc499154c5c8324c375ffbab8cc6237 /juick-xmpp/src/main
parent853b60c7229ffccd1d9e40b79ff08cae822e49b9 (diff)
juick-xmpp: enable message receipts
Diffstat (limited to 'juick-xmpp/src/main')
-rw-r--r--juick-xmpp/src/main/java/com/juick/components/XMPPConnection.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/juick-xmpp/src/main/java/com/juick/components/XMPPConnection.java b/juick-xmpp/src/main/java/com/juick/components/XMPPConnection.java
index 0db1f4a7..bdec908f 100644
--- a/juick-xmpp/src/main/java/com/juick/components/XMPPConnection.java
+++ b/juick-xmpp/src/main/java/com/juick/components/XMPPConnection.java
@@ -13,6 +13,7 @@ import rocks.xmpp.extensions.component.accept.ExternalComponent;
import rocks.xmpp.extensions.nick.model.Nickname;
import rocks.xmpp.extensions.oob.model.x.OobX;
import rocks.xmpp.extensions.ping.PingManager;
+import rocks.xmpp.extensions.receipts.MessageDeliveryReceiptsManager;
import rocks.xmpp.util.XmppUtils;
import javax.xml.bind.JAXBException;
@@ -40,6 +41,9 @@ public class XMPPConnection implements AutoCloseable {
router = ExternalComponent.create(componentName, password, xmpp.getSession().getConfiguration(), "localhost", componentPort);
PingManager pingManager = router.getManager(PingManager.class);
pingManager.setEnabled(true);
+ MessageDeliveryReceiptsManager messageDeliveryReceiptsManager =
+ router.getManager(MessageDeliveryReceiptsManager.class);
+ messageDeliveryReceiptsManager.setEnabled(true);
router.addInboundMessageListener(e -> {
Message message = e.getMessage();
Jid jid = message.getTo();