@@ -2,6 +2,10 @@ package eu.siacs.conversations;
import android.graphics.Bitmap;
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+
import eu.siacs.conversations.xmpp.chatstate.ChatState;
import rocks.xmpp.addr.Jid;
@@ -145,6 +149,15 @@ public final class Config {
"_MD5",
};
+ public static class OMEMO_EXCEPTIONS {
+ //if the own account matches one of the following domains OMEMO wonโt be turned on automatically
+ public static final List<String> ACCOUNT_DOMAINS = Collections.singletonList("s.ms");
+
+ //if the contacts domain matches one of the following domains OMEMO wonโt be turned on automatically
+ //can be used for well known, widely used gateways
+ public static final List<String> CONTACT_DOMAINS = Collections.singletonList("cheogram.com");
+ }
+
private Config() {
}
}