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.
This commit is contained in:
Florian Schmaus 2020-04-15 09:34:04 +02:00
parent cda764d62d
commit 77d12d4758
1 changed files with 1 additions and 1 deletions

View File

@ -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<XMPPConnection, MessageFasteningManager> INSTANCES = new WeakHashMap<>();