diff options
author | Vitaly Takmazov | 2017-09-06 14:23:07 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2017-09-06 14:23:07 +0300 |
commit | 8094d66534f47ed302d271da4dba1147fe6b2a3c (patch) | |
tree | dcb2701d2462dd94f9964fa05e75ea02d6d06064 /juick-xmpp/src/main/java/com/juick/components | |
parent | 346c39037d6e5e9c2d006ac43439f865f418a62c (diff) |
www: cleanup and fix configuration
Diffstat (limited to 'juick-xmpp/src/main/java/com/juick/components')
-rw-r--r-- | juick-xmpp/src/main/java/com/juick/components/XMPPConnection.java | 6 |
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 { |