From 77d12d475816ff81508a60a4201beeabd7749251 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Wed, 15 Apr 2020 09:34:04 +0200 Subject: [PATCH] fastening: set ENABLED_BY_DEFAULT to false If it is announced as feature, entities sending fastened messages expect the recipient to react somehow on those. And this is not the case if this is just enabled in Smack. Hence we disable it per default and require smack users to explicitly enable it after they have setup the according stanza listeners. --- .../smackx/message_fastening/MessageFasteningManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smack-experimental/src/main/java/org/jivesoftware/smackx/message_fastening/MessageFasteningManager.java b/smack-experimental/src/main/java/org/jivesoftware/smackx/message_fastening/MessageFasteningManager.java index ee73afae1..d66cd1bff 100644 --- a/smack-experimental/src/main/java/org/jivesoftware/smackx/message_fastening/MessageFasteningManager.java +++ b/smack-experimental/src/main/java/org/jivesoftware/smackx/message_fastening/MessageFasteningManager.java @@ -51,7 +51,7 @@ public final class MessageFasteningManager extends Manager { public static final String NAMESPACE = "urn:xmpp:fasten:0"; - private static boolean ENABLED_BY_DEFAULT = true; + private static boolean ENABLED_BY_DEFAULT = false; private static final WeakHashMap INSTANCES = new WeakHashMap<>();