aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2023-04-11 00:50:00 +0300
committerGravatar Vitaly Takmazov2023-04-13 19:50:01 +0300
commit6b028d7c2ced257eb10ad15a95bbb053679f75bf (patch)
tree43d09e66de97c12b642e76663c9ce81c6f8bbf39 /src
parent379f1a8661da46040332923a5ccfb555656b0a8b (diff)
XMPP: enable file transfers
Diffstat (limited to 'src')
-rw-r--r--src/main/java/com/juick/XMPPManager.java2
1 files changed, 2 insertions, 0 deletions
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);