From 6b028d7c2ced257eb10ad15a95bbb053679f75bf Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Tue, 11 Apr 2023 00:50:00 +0300 Subject: XMPP: enable file transfers --- src/main/java/com/juick/XMPPManager.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/main') diff --git a/src/main/java/com/juick/XMPPManager.java b/src/main/java/com/juick/XMPPManager.java index 97e48257..d4daf9a4 100644 --- a/src/main/java/com/juick/XMPPManager.java +++ b/src/main/java/com/juick/XMPPManager.java @@ -60,6 +60,7 @@ 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.extensions.si.model.StreamInitiation; import rocks.xmpp.extensions.vcard.temp.model.VCard; import rocks.xmpp.extensions.version.SoftwareVersionManager; import rocks.xmpp.extensions.version.model.SoftwareVersion; @@ -106,6 +107,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")); + xmpp.enableFeature(StreamInitiation.NAMESPACE); xmpp.getManager(ClientEntityCapabilities1Protocol.class).setNode("https://juick.com/caps"); MessageDeliveryReceiptsManager messageDeliveryReceiptsManager = xmpp.getManager(MessageDeliveryReceiptsManager.class); messageDeliveryReceiptsManager.setEnabled(true); -- cgit v1.2.3