Update to new CDS flag.
This commit is contained in:
parent
4c3882689f
commit
4c428e5b5b
1 changed files with 9 additions and 4 deletions
|
@ -106,10 +106,11 @@ public final class FeatureFlags {
|
||||||
private static final String MAX_ATTACHMENT_RECEIVE_SIZE_BYTES = "global.attachments.maxReceiveBytes";
|
private static final String MAX_ATTACHMENT_RECEIVE_SIZE_BYTES = "global.attachments.maxReceiveBytes";
|
||||||
private static final String MAX_ATTACHMENT_SIZE_BYTES = "global.attachments.maxBytes";
|
private static final String MAX_ATTACHMENT_SIZE_BYTES = "global.attachments.maxBytes";
|
||||||
private static final String SVR2_KILLSWITCH = "android.svr2.killSwitch";
|
private static final String SVR2_KILLSWITCH = "android.svr2.killSwitch";
|
||||||
private static final String CDS_COMPAT_MODE = "global.cds.return_acis_without_uaks";
|
private static final String CDS_DISABLE_COMPAT_MODE = "cds.disableCompatibilityMode";
|
||||||
private static final String CONVERSATION_FRAGMENT_V2 = "android.conversationFragmentV2.2";
|
private static final String CONVERSATION_FRAGMENT_V2 = "android.conversationFragmentV2.2";
|
||||||
private static final String FCM_MAY_HAVE_MESSAGES_KILL_SWITCH = "android.fcmNotificationFallbackKillSwitch";
|
private static final String FCM_MAY_HAVE_MESSAGES_KILL_SWITCH = "android.fcmNotificationFallbackKillSwitch";
|
||||||
private static final String SAFETY_NUMBER_ACI = "global.safetyNumberAci";
|
private static final String SAFETY_NUMBER_ACI = "global.safetyNumberAci";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* We will only store remote values for flags in this set. If you want a flag to be controllable
|
* We will only store remote values for flags in this set. If you want a flag to be controllable
|
||||||
* remotely, place it in here.
|
* remotely, place it in here.
|
||||||
|
@ -167,7 +168,7 @@ public final class FeatureFlags {
|
||||||
MAX_ATTACHMENT_SIZE_BYTES,
|
MAX_ATTACHMENT_SIZE_BYTES,
|
||||||
AD_HOC_CALLING,
|
AD_HOC_CALLING,
|
||||||
SVR2_KILLSWITCH,
|
SVR2_KILLSWITCH,
|
||||||
CDS_COMPAT_MODE,
|
CDS_DISABLE_COMPAT_MODE,
|
||||||
CONVERSATION_FRAGMENT_V2,
|
CONVERSATION_FRAGMENT_V2,
|
||||||
SAFETY_NUMBER_ACI,
|
SAFETY_NUMBER_ACI,
|
||||||
FCM_MAY_HAVE_MESSAGES_KILL_SWITCH
|
FCM_MAY_HAVE_MESSAGES_KILL_SWITCH
|
||||||
|
@ -235,7 +236,7 @@ public final class FeatureFlags {
|
||||||
MAX_ATTACHMENT_RECEIVE_SIZE_BYTES,
|
MAX_ATTACHMENT_RECEIVE_SIZE_BYTES,
|
||||||
MAX_ATTACHMENT_SIZE_BYTES,
|
MAX_ATTACHMENT_SIZE_BYTES,
|
||||||
SVR2_KILLSWITCH,
|
SVR2_KILLSWITCH,
|
||||||
CDS_COMPAT_MODE,
|
CDS_DISABLE_COMPAT_MODE,
|
||||||
CONVERSATION_FRAGMENT_V2,
|
CONVERSATION_FRAGMENT_V2,
|
||||||
SAFETY_NUMBER_ACI,
|
SAFETY_NUMBER_ACI,
|
||||||
FCM_MAY_HAVE_MESSAGES_KILL_SWITCH
|
FCM_MAY_HAVE_MESSAGES_KILL_SWITCH
|
||||||
|
@ -613,7 +614,11 @@ public final class FeatureFlags {
|
||||||
|
|
||||||
/** True if you should use CDS in compat mode (i.e. request ACI's even if you don't know the access key), otherwise false. */
|
/** True if you should use CDS in compat mode (i.e. request ACI's even if you don't know the access key), otherwise false. */
|
||||||
public static boolean cdsCompatMode() {
|
public static boolean cdsCompatMode() {
|
||||||
return !phoneNumberPrivacy() && getBoolean(CDS_COMPAT_MODE, true);
|
if (phoneNumberPrivacy()) {
|
||||||
|
return false;
|
||||||
|
} else {
|
||||||
|
return !getBoolean(CDS_DISABLE_COMPAT_MODE, false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/** True if the new conversation fragment should be used. */
|
/** True if the new conversation fragment should be used. */
|
||||||
|
|
Loading…
Add table
Reference in a new issue