aboutsummaryrefslogtreecommitdiff
path: root/juick-xmpp/src/main/java/com/juick/components/XMPPConnection.java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2017-09-06 14:23:07 +0300
committerGravatar Vitaly Takmazov2017-09-06 14:23:07 +0300
commit8094d66534f47ed302d271da4dba1147fe6b2a3c (patch)
treedcb2701d2462dd94f9964fa05e75ea02d6d06064 /juick-xmpp/src/main/java/com/juick/components/XMPPConnection.java
parent346c39037d6e5e9c2d006ac43439f865f418a62c (diff)
www: cleanup and fix configuration
Diffstat (limited to 'juick-xmpp/src/main/java/com/juick/components/XMPPConnection.java')
-rw-r--r--juick-xmpp/src/main/java/com/juick/components/XMPPConnection.java6
1 files changed, 2 insertions, 4 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 ff879bee..a124c461 100644
--- a/juick-xmpp/src/main/java/com/juick/components/XMPPConnection.java
+++ b/juick-xmpp/src/main/java/com/juick/components/XMPPConnection.java
@@ -32,9 +32,9 @@ import rocks.xmpp.core.stanza.AbstractIQHandler;
import rocks.xmpp.core.stanza.model.IQ;
import rocks.xmpp.core.stanza.model.Message;
import rocks.xmpp.core.stanza.model.Stanza;
-import rocks.xmpp.core.stanza.model.client.ClientIQ;
import rocks.xmpp.core.stanza.model.client.ClientMessage;
import rocks.xmpp.core.stanza.model.errors.Condition;
+import rocks.xmpp.extensions.caps.model.EntityCapabilities;
import rocks.xmpp.extensions.component.accept.ExternalComponent;
import rocks.xmpp.extensions.filetransfer.FileTransfer;
import rocks.xmpp.extensions.filetransfer.FileTransferManager;
@@ -84,9 +84,7 @@ 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.disableFeature(EntityCapabilities.NAMESPACE);
VCard vCard = new VCard();
vCard.setFormattedName("Juick");
try {