1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-12-22 20:47:57 +01:00

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

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<>();