Pair usernames flag with the PNP flag.

This commit is contained in:
Greyson Parrelli 2022-11-04 12:42:00 -04:00 committed by Cody Henthorne
parent 8f06381239
commit a2415261bd

View file

@ -55,7 +55,6 @@ public final class FeatureFlags {
private static final long FETCH_INTERVAL = TimeUnit.HOURS.toMillis(2);
private static final String PAYMENTS_KILL_SWITCH = "android.payments.kill";
private static final String USERNAMES = "android.usernames";
private static final String GROUPS_V2_RECOMMENDED_LIMIT = "global.groupsv2.maxGroupSize";
private static final String GROUPS_V2_HARD_LIMIT = "global.groupsv2.groupSizeHardLimit";
private static final String GROUP_NAME_MAX_LENGTH = "global.groupsv2.maxNameLength";
@ -117,7 +116,6 @@ public final class FeatureFlags {
GROUPS_V2_RECOMMENDED_LIMIT,
GROUPS_V2_HARD_LIMIT,
INTERNAL_USER,
USERNAMES,
VERIFY_V2,
CLIENT_EXPIRATION,
DONATE_MEGAPHONE,
@ -312,7 +310,8 @@ public final class FeatureFlags {
/** Creating usernames, sending messages by username. */
public static synchronized boolean usernames() {
return getBoolean(USERNAMES, false);
// For now these features are paired, but leaving the separate method in case we decide to separate in the future.
return phoneNumberPrivacy();
}
/**