aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2022-12-28 01:54:47 +0300
committerGravatar Vitaly Takmazov2022-12-28 01:54:47 +0300
commit70139f93ae18ae503f0f403bf12421cf5ca6dc86 (patch)
tree5b5f22aaa771650b4746930b318b7c8b29766c6d /src
parent3629010a96b4aa29ffbbfaab73c09a801d875957 (diff)
XMPP: fix caps node
Diffstat (limited to 'src')
-rw-r--r--src/main/java/com/juick/XMPPManager.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main/java/com/juick/XMPPManager.java b/src/main/java/com/juick/XMPPManager.java
index 7b881420..a334ecf9 100644
--- a/src/main/java/com/juick/XMPPManager.java
+++ b/src/main/java/com/juick/XMPPManager.java
@@ -55,7 +55,7 @@ import rocks.xmpp.core.stanza.model.StanzaError;
import rocks.xmpp.core.stanza.model.client.ClientMessage;
import rocks.xmpp.core.stanza.model.client.ClientPresence;
import rocks.xmpp.core.stanza.model.errors.Condition;
-import rocks.xmpp.extensions.caps.EntityCapabilitiesManager;
+import rocks.xmpp.extensions.caps.client.ClientEntityCapabilities1Protocol;
import rocks.xmpp.extensions.component.accept.ExternalComponent;
import rocks.xmpp.extensions.disco.ServiceDiscoveryManager;
import rocks.xmpp.extensions.disco.model.info.Identity;
@@ -132,8 +132,7 @@ public class XMPPManager implements NotificationListener {
xmpp = ExternalComponent.create(componentName, password, configuration, componentHost, componentPort);
ServiceDiscoveryManager serviceDiscoveryManager = xmpp.getManager(ServiceDiscoveryManager.class);
serviceDiscoveryManager.addIdentity(Identity.clientBot().withName("Juick"));
- EntityCapabilitiesManager entityCapabilitiesManager = xmpp.getManager(EntityCapabilitiesManager.class);
- //entityCapabilitiesManager.setNode("https://juick.com/caps");
+ xmpp.getManager(ClientEntityCapabilities1Protocol.class).setNode("https://juick.com/caps");
MessageDeliveryReceiptsManager messageDeliveryReceiptsManager = xmpp.getManager(MessageDeliveryReceiptsManager.class);
messageDeliveryReceiptsManager.setEnabled(true);
PingManager pingManager = xmpp.getManager(PingManager.class);