diff options
author | Christian Schneppe <christian@pix-art.de> | 2016-05-22 21:31:02 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2016-05-22 21:31:02 +0200 |
commit | 0f388f9cc0229581a3d0bd7c5dfc5b7ad7b8bd3a (patch) | |
tree | f2071e8402e9c87224733922fa7b08036b8b9dc9 /src | |
parent | cf956b605c459bd8d8e08ced00a06207bbd8cdc4 (diff) |
don't make OMEMO default
Diffstat (limited to '')
-rw-r--r-- | src/main/java/eu/siacs/conversations/Config.java | 4 | ||||
-rw-r--r-- | src/main/java/eu/siacs/conversations/entities/Conversation.java | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/main/java/eu/siacs/conversations/Config.java b/src/main/java/eu/siacs/conversations/Config.java index eebeb54f1..54a272a23 100644 --- a/src/main/java/eu/siacs/conversations/Config.java +++ b/src/main/java/eu/siacs/conversations/Config.java @@ -33,6 +33,8 @@ public final class Config { return (ENCRYPTION_MASK & (ENCRYPTION_MASK - 1)) != 0; } + public static boolean AlwayUseOMEMO = false; //true makes OMEMO as default on every 1 to 1 chat + public static final String LOGTAG = "Pix-Art Messenger"; public static final String XMPP_IP = "185.26.156.37"; // set to null means disable @@ -78,7 +80,7 @@ public final class Config { public static final int MESSAGE_MERGE_WINDOW = 20; - public static final int PAGE_SIZE = 20; + public static final int PAGE_SIZE = 50; public static final int MAX_NUM_PAGES = 3; public static final int REFRESH_UI_INTERVAL = 500; diff --git a/src/main/java/eu/siacs/conversations/entities/Conversation.java b/src/main/java/eu/siacs/conversations/entities/Conversation.java index 518152356..a8f809b08 100644 --- a/src/main/java/eu/siacs/conversations/entities/Conversation.java +++ b/src/main/java/eu/siacs/conversations/entities/Conversation.java @@ -696,7 +696,8 @@ public class Conversation extends AbstractEntity implements Blockable { && mode == MODE_SINGLE && axolotlService.isConversationAxolotlCapable(this) && getAccount().getSelfContact().getPresences().allOrNonSupport(AxolotlService.PEP_DEVICE_LIST_NOTIFY) - && getContact().getPresences().allOrNonSupport(AxolotlService.PEP_DEVICE_LIST_NOTIFY)) { + && getContact().getPresences().allOrNonSupport(AxolotlService.PEP_DEVICE_LIST_NOTIFY) + && Config.AlwayUseOMEMO){ return Message.ENCRYPTION_AXOLOTL; } else { next = this.getMostRecentlyUsedIncomingEncryption(); |