Skip to content

Commit

Permalink
Pair usernames flag with the PNP flag.
Browse files Browse the repository at this point in the history
  • Loading branch information
greyson-signal authored and cody-signal committed Nov 10, 2022
1 parent 8f06381 commit a241526
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -312,7 +310,8 @@ public static synchronized void update(@NonNull Map<String, Object> config) {

/** 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();
}

/**
Expand Down

0 comments on commit a241526

Please sign in to comment.